11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
Place, Suite 330, Boston, MA 02111-1307 USA
17
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/usr0sess.h
19
/******************************************************
23
22
Created 6/25/1996 Heikki Tuuri
36
35
#include "data0data.h"
37
36
#include "rem0rec.h"
39
/*********************************************************************//**
41
@return own: session object */
38
/*************************************************************************
46
/*********************************************************************//**
47
Closes a session, freeing the memory occupied by it. */
44
/* out, own: session object */
45
/*************************************************************************
46
Closes a session, freeing the memory occupied by it, if it is in a state
47
where it should be closed. */
52
sess_t* sess); /* in, own: session object */
52
/* out: TRUE if closed */
53
sess_t* sess); /* in, own: session object */
54
55
/* The session handle. All fields are protected by the kernel mutex */
55
56
struct sess_struct{
56
ulint state; /*!< state of the session */
57
trx_t* trx; /*!< transaction object permanently
57
ulint state; /* state of the session */
58
trx_t* trx; /* transaction object permanently
58
59
assigned for the session: the
59
60
transaction instance designated by the
60
61
trx id changes, but the memory
61
62
structure is preserved */
62
63
UT_LIST_BASE_NODE_T(que_t)
63
graphs; /*!< query graphs belonging to this
64
graphs; /* query graphs belonging to this