InnoDB Plugin  1.0
api0misc.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2008, 2012, Oracle and/or its affiliates. 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.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
27 #ifndef api0misc_h
28 #define api0misc_h
29 
30 #include "univ.i"
31 #include "os0file.h"
32 #include "que0que.h"
33 #include "trx0trx.h"
34 
36 extern my_bool ib_binlog_enabled;
37 
39 extern my_bool ib_mdl_enabled;
40 
42 extern my_bool ib_disable_row_lock;
43 
45 extern ulong ib_trx_level_setting;
46 
48 extern ulong ib_bk_commit_interval;
49 
50 /********************************************************************
51 Handles user errors and lock waits detected by the database engine.
52 @return TRUE if it was a lock wait and we should continue running
53 the query thread */
54 UNIV_INTERN
55 ibool
57 /*=============*/
58  dberr_t* new_err,
63  trx_t* trx,
64  que_thr_t* thr,
65  trx_savept_t* savept);
67 /*************************************************************************
68 Sets a lock on a table.
69 @return error code or DB_SUCCESS */
70 UNIV_INTERN
71 dberr_t
73 /*=========================*/
74  trx_t* trx,
75  dict_table_t* table,
76  enum lock_mode mode);
78 #endif /* api0misc_h */