#include "univ.i"#include "ut0byte.h"#include "trx0types.h"#include "srv0srv.h"#include "usr0types.h"#include "que0types.h"#include "data0data.h"#include "rem0rec.h"Include dependency graph for usr0sess.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | sess_struct |
Defines | |
| #define | SESS_ACTIVE 1 |
| #define | SESS_ERROR 2 |
Functions | |
| sess_t * | sess_open (void) |
| ibool | sess_try_close (sess_t *sess) |
| #define SESS_ACTIVE 1 |
| #define SESS_ERROR 2 |
Definition at line 54 of file usr0sess.h.
Referenced by que_fork_error_handle(), trx_end_signal_handling(), trx_sig_reply(), trx_sig_send(), and trx_sig_start_handle().
| 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

