1
#ifndef HA_INNODB_PROTOTYPES_H
2
#define HA_INNODB_PROTOTYPES_H
6
#include "univ.i" /* ulint, uint */
7
#include "m_ctype.h" /* CHARSET_INFO */
9
/* Prototypes for global functions in ha_innodb.cc that are called by
12
/*************************************************************************
13
Wrapper around MySQL's copy_and_convert function, see it for
17
innobase_convert_string(
18
/*====================*/
24
CHARSET_INFO* from_cs,
27
/*********************************************************************
28
Display an SQL identifier. */
31
innobase_print_identifier(
32
/*======================*/
33
FILE* f, /* in: output stream */
34
trx_t* trx, /* in: transaction */
35
ibool table_id,/* in: TRUE=print a table name,
36
FALSE=print other identifier */
37
const char* name, /* in: name to print */
38
ulint namelen);/* in: length of name */
40
/**********************************************************************
41
Returns true if the thread is the replication thread on the slave
42
server. Used in srv_conc_enter_innodb() to determine if the thread
43
should be allowed to enter InnoDB - the replication thread is treated
44
differently than other threads. Also used in
45
srv_conc_force_exit_innodb(). */
48
thd_is_replication_slave_thread(
49
/*============================*/
50
/* out: true if thd is the replication thread */
51
void* thd); /* in: thread handle (THD*) */
53
/**********************************************************************
54
Returns true if the transaction this thread is processing has edited
55
non-transactional tables. Used by the deadlock detector when deciding
56
which transaction to rollback in case of a deadlock - we try to avoid
57
rolling back transactions that have edited non-transactional tables. */
60
thd_has_edited_nontrans_tables(
61
/*===========================*/
62
/* out: true if non-transactional tables have
64
void* thd); /* in: thread handle (THD*) */