641.2.2
by Monty Taylor
InnoDB Plugin 1.0.3 |
1 |
/*****************************************************************************
|
2 |
||
3 |
Copyright (c) 2007, 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
|
|
1802.10.2
by Monty Taylor
Update all of the copyright headers to include the correct address. |
14 |
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
|
15 |
St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
641.2.2
by Monty Taylor
InnoDB Plugin 1.0.3 |
16 |
|
17 |
*****************************************************************************/
|
|
18 |
||
641.2.3
by Monty Taylor
InnoDB Plugin 1.0.4 |
19 |
/**************************************************//**
|
20 |
@file include/mysql_addons.h
|
|
641.1.2
by Monty Taylor
Imported 1.0.1 with clean - with no changes. |
21 |
This file contains functions that need to be added to
|
22 |
MySQL code but have not been added yet.
|
|
23 |
||
24 |
Whenever you add a function here submit a MySQL bug
|
|
25 |
report (feature request) with the implementation. Then
|
|
26 |
write the bug number in the comment before the
|
|
27 |
function in this file.
|
|
28 |
||
29 |
When MySQL commits the function it can be deleted from
|
|
30 |
here. In a perfect world this file exists but is empty.
|
|
31 |
||
32 |
Created November 07, 2007 Vasil Dimov
|
|
33 |
*******************************************************/
|
|
933.1.2
by Monty Taylor
Fixed merge weirdness errors. |
34 |
|
1114.1.1
by Monty Taylor
Merged InnoDB Plugin 1.0.4 |
35 |
#if defined(BUILD_DRIZZLE)
|
1530.2.5
by Monty Taylor
Renamed classes that were in drizzled::plugin but which were not meant |
36 |
#if defined(__cplusplus)
|
37 |
extern "C" |
|
38 |
{
|
|
39 |
#else
|
|
40 |
#include <stdbool.h> |
|
41 |
#endif
|
|
933.1.2
by Monty Taylor
Fixed merge weirdness errors. |
42 |
/**
|
43 |
*
|
|
44 |
Return the thread id of a user thread
|
|
45 |
||
46 |
@param session user thread connection handle
|
|
47 |
@return thread id
|
|
48 |
*/
|
|
1471.5.2
by mordred
Removed some extern "C" bits that were screwing with the callstack. |
49 |
#if defined(__cplusplus)
|
50 |
extern "C" |
|
51 |
#endif
|
|
933.1.2
by Monty Taylor
Fixed merge weirdness errors. |
52 |
unsigned long session_get_thread_id(const void *session); |
1530.2.5
by Monty Taylor
Renamed classes that were in drizzled::plugin but which were not meant |
53 |
|
54 |
/**
|
|
55 |
Check if a user thread is running a non-transactional update
|
|
56 |
@param session user thread
|
|
57 |
@retval 0 the user thread is not running a non-transactional update
|
|
58 |
@retval 1 the user thread is running a non-transactional update
|
|
59 |
*/
|
|
60 |
int session_non_transactional_update(const void *session); |
|
61 |
||
62 |
/**
|
|
63 |
Mark transaction to rollback and mark error as fatal to a sub-statement.
|
|
64 |
@param session Thread handle
|
|
65 |
@param all TRUE <=> rollback main transaction.
|
|
66 |
*/
|
|
67 |
void session_mark_transaction_to_rollback(void *session, bool all); |
|
68 |
||
69 |
#if defined(__cplusplus)
|
|
70 |
}
|
|
71 |
#endif
|
|
1114.1.1
by Monty Taylor
Merged InnoDB Plugin 1.0.4 |
72 |
#endif
|