#include "univ.i"
#include "ut0byte.h"
#include "trx0types.h"
#include "srv0srv.h"
#include "usr0types.h"
#include "que0types.h"
#include "data0data.h"
#include "rem0rec.h"
Go to the source code of this file.
Classes | |
struct | sess_struct |
Macros | |
#define | usr0sess_h |
#define | SESS_ACTIVE 1 |
#define | SESS_ERROR |
Functions | |
UNIV_INTERN sess_t * | sess_open (void) |
UNIV_INTERN void | sess_close (sess_t *sess) |
#define SESS_ERROR |
Definition at line 70 of file usr0sess.h.
UNIV_INTERN void sess_close | ( | sess_t * | sess | ) |
Closes a session, freeing the memory occupied by it.
sess | in, own: session object |
Definition at line 61 of file usr0sess.cc.
References sess_struct::graphs, mem_free, sess_struct::trx, trx_free_for_background(), ut_a, ut_ad, and UT_LIST_GET_LEN.
Referenced by trx_purge_sys_close(), and trx_sys_close().
UNIV_INTERN sess_t* sess_open | ( | void | ) |
Opens a session.
Definition at line 39 of file usr0sess.cc.
References sess_struct::graphs, sess_struct::state, sess_struct::trx, trx_create(), ut_ad, and UT_LIST_INIT.
Referenced by trx_purge_sys_create(), and trx_sys_init_at_db_start().