#include "usr0sess.h"#include "trx0trx.h"Include dependency graph for usr0sess.c:

Go to the source code of this file.
Functions | |
| static void | sess_close (sess_t *sess) |
| sess_t * | sess_open (void) |
| ibool | sess_try_close (sess_t *sess) |
| static void sess_close | ( | sess_t * | sess | ) | [static] |
Definition at line 53 of file usr0sess.c.
References kernel_mutex, mem_free, NULL, sess_struct::trx, and ut_ad.
Referenced by sess_try_close().
00055 : session object */ 00056 { 00057 #ifdef UNIV_SYNC_DEBUG 00058 ut_ad(mutex_own(&kernel_mutex)); 00059 #endif /* UNIV_SYNC_DEBUG */ 00060 ut_ad(sess->trx == NULL); 00061 00062 mem_free(sess); 00063 }
Here is the caller graph for this function:

| sess_t* sess_open | ( | void | ) |
Definition at line 29 of file usr0sess.c.
References sess_struct::graphs, kernel_mutex, mem_alloc, SESS_ACTIVE, sess_struct::state, sess_struct::trx, trx_create(), ut_ad, and UT_LIST_INIT.
Referenced by trx_allocate_for_background(), trx_allocate_for_mysql(), trx_purge_sys_create(), and trx_rollback_or_clean_all_without_sess().
00031 : session object */ 00032 { 00033 sess_t* sess; 00034 00035 #ifdef UNIV_SYNC_DEBUG 00036 ut_ad(mutex_own(&kernel_mutex)); 00037 #endif /* UNIV_SYNC_DEBUG */ 00038 sess = mem_alloc(sizeof(sess_t)); 00039 00040 sess->state = SESS_ACTIVE; 00041 00042 sess->trx = trx_create(sess); 00043 00044 UT_LIST_INIT(sess->graphs); 00045 00046 return(sess); 00047 }
Here is the call graph for this function:

Here is the caller graph for this function:

| ibool sess_try_close | ( | sess_t * | sess | ) |
Definition at line 70 of file usr0sess.c.
References FALSE, sess_struct::graphs, kernel_mutex, sess_close(), TRUE, ut_ad, and UT_LIST_GET_LEN.
Referenced by que_graph_try_free().
00072 : TRUE if closed */ 00073 sess_t* sess) /* in, own: session object */ 00074 { 00075 #ifdef UNIV_SYNC_DEBUG 00076 ut_ad(mutex_own(&kernel_mutex)); 00077 #endif /* UNIV_SYNC_DEBUG */ 00078 if (UT_LIST_GET_LEN(sess->graphs) == 0) { 00079 sess_close(sess); 00080 00081 return(TRUE); 00082 } 00083 00084 return(FALSE); 00085 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

