drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
usr0sess.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
4
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.
8
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.
12
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
16
17
*****************************************************************************/
18
19
/**************************************************/
25
26
#pragma once
27
#ifndef usr0sess_h
28
#define usr0sess_h
29
30
#include "univ.i"
31
#include "
ut0byte.h
"
32
#include "
trx0types.h
"
33
#include "
srv0srv.h
"
34
#include "
trx0types.h
"
35
#include "
usr0types.h
"
36
#include "
que0types.h
"
37
#include "
data0data.h
"
38
#include "
rem0rec.h
"
39
40
/*********************************************************************/
43
UNIV_INTERN
44
sess_t*
45
sess_open
(
void
);
46
/*============*/
47
/*********************************************************************/
49
UNIV_INTERN
50
void
51
sess_close
(
52
/*=======*/
53
sess_t* sess);
/* in, own: session object */
54
55
/* The session handle. All fields are protected by the kernel mutex */
56
struct
sess_struct
{
57
ulint
state
;
58
trx_t*
trx
;
63
UT_LIST_BASE_NODE_T
(que_t)
64
graphs
;
66
};
67
68
/* Session states */
69
#define SESS_ACTIVE 1
70
#define SESS_ERROR 2
/* session contains an error message
71
which has not yet been communicated
72
to the client */
73
#ifndef UNIV_NONINL
74
#include "usr0sess.ic"
75
#endif
76
77
#endif
data0data.h
que0types.h
rem0rec.h
srv0srv.h
sess_struct
Definition
usr0sess.h:56
sess_struct::graphs
graphs
Definition
usr0sess.h:64
sess_struct::state
ulint state
Definition
usr0sess.h:57
sess_struct::trx
trx_t * trx
Definition
usr0sess.h:58
trx0types.h
sess_open
UNIV_INTERN sess_t * sess_open(void)
Definition
usr0sess.cc:39
sess_close
UNIV_INTERN void sess_close(sess_t *sess)
Definition
usr0sess.cc:61
usr0types.h
ut0byte.h
UT_LIST_BASE_NODE_T
#define UT_LIST_BASE_NODE_T(TYPE)
Definition
ut0lst.h:54
← Back to Drizzle docs
plugin
innobase
include
usr0sess.h
Generated by
1.15.0