1
/*****************************************************************************
3
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
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
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/usr0sess.h
23
Created 6/25/1996 Heikki Tuuri
24
*******************************************************/
32
#include "trx0types.h"
34
#include "trx0types.h"
35
#include "usr0types.h"
36
#include "que0types.h"
37
#include "data0data.h"
40
/*********************************************************************//**
42
@return own: session object */
47
/*********************************************************************//**
48
Closes a session, freeing the memory occupied by it. */
53
sess_t* sess); /* in, own: session object */
55
/* The session handle. All fields are protected by the kernel mutex */
57
ulint state; /*!< state of the session */
58
trx_t* trx; /*!< transaction object permanently
59
assigned for the session: the
60
transaction instance designated by the
61
trx id changes, but the memory
62
structure is preserved */
63
UT_LIST_BASE_NODE_T(que_t)
64
graphs; /*!< query graphs belonging to this
70
#define SESS_ERROR 2 /* session contains an error message
71
which has not yet been communicated
74
#include "usr0sess.ic"