~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/mysql_addons.h

Separated BlitzCursor code out to it's own file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
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
16
16
 
17
17
*****************************************************************************/
18
18
 
33
33
*******************************************************/
34
34
 
35
35
#if defined(BUILD_DRIZZLE)
36
 
#if defined(__cplusplus)
37
 
extern "C"
38
 
{
39
 
#else
40
 
#include <stdbool.h>
41
 
#endif
42
36
/**
43
37
 *
44
38
  Return the thread id of a user thread
50
44
extern "C"
51
45
#endif
52
46
unsigned long session_get_thread_id(const void *session);
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
72
47
#endif