Commit b1663422 authored by marko's avatar marko

Move the prototype of innobase_print_identifier() from ut0ut.c to

ha_prototypes.h.  Enclose the definitions in ha_prototypes.h in
#ifndef UNIV_HOTBACKUP.
parent a8ef257d
...@@ -1252,8 +1252,7 @@ innobase_invalidate_query_cache( ...@@ -1252,8 +1252,7 @@ innobase_invalidate_query_cache(
} }
/********************************************************************* /*********************************************************************
Display an SQL identifier. Display an SQL identifier. */
This definition must match the one in innobase/ut/ut0ut.c! */
extern "C" extern "C"
void void
innobase_print_identifier( innobase_print_identifier(
......
#ifndef HA_INNODB_PROTOTYPES_H #ifndef HA_INNODB_PROTOTYPES_H
#define HA_INNODB_PROTOTYPES_H #define HA_INNODB_PROTOTYPES_H
#ifndef UNIV_HOTBACKUP
#include "univ.i" /* ulint, uint */ #include "univ.i" /* ulint, uint */
#include "m_ctype.h" /* CHARSET_INFO */ #include "m_ctype.h" /* CHARSET_INFO */
...@@ -22,6 +24,19 @@ innobase_convert_string( ...@@ -22,6 +24,19 @@ innobase_convert_string(
CHARSET_INFO* from_cs, CHARSET_INFO* from_cs,
uint* errors); uint* errors);
/*********************************************************************
Display an SQL identifier. */
void
innobase_print_identifier(
/*======================*/
FILE* f, /* in: output stream */
trx_t* trx, /* in: transaction */
ibool table_id,/* in: TRUE=print a table name,
FALSE=print other identifier */
const char* name, /* in: name to print */
ulint namelen);/* in: length of name */
/********************************************************************** /**********************************************************************
Returns true if the thread is the replication thread on the slave Returns true if the thread is the replication thread on the slave
server. Used in srv_conc_enter_innodb() to determine if the thread server. Used in srv_conc_enter_innodb() to determine if the thread
...@@ -49,3 +64,4 @@ thd_has_edited_nontrans_tables( ...@@ -49,3 +64,4 @@ thd_has_edited_nontrans_tables(
void* thd); /* in: thread handle (THD*) */ void* thd); /* in: thread handle (THD*) */
#endif #endif
#endif
...@@ -18,6 +18,7 @@ Created 5/11/1994 Heikki Tuuri ...@@ -18,6 +18,7 @@ Created 5/11/1994 Heikki Tuuri
#include "ut0sort.h" #include "ut0sort.h"
#include "trx0trx.h" #include "trx0trx.h"
#include "ha_prototypes.h"
ibool ut_always_false = FALSE; ibool ut_always_false = FALSE;
...@@ -70,22 +71,6 @@ ut_gettimeofday( ...@@ -70,22 +71,6 @@ ut_gettimeofday(
#define ut_gettimeofday gettimeofday #define ut_gettimeofday gettimeofday
#endif #endif
#ifndef UNIV_HOTBACKUP
/*********************************************************************
Display an SQL identifier.
This definition must match the one in sql/ha_innodb.cc! */
extern
void
innobase_print_identifier(
/*======================*/
FILE* f, /* in: output stream */
trx_t* trx, /* in: transaction */
ibool table_id,/* in: TRUE=print a table name,
FALSE=print other identifier */
const char* name, /* in: name to print */
ulint namelen);/* in: length of name */
#endif /* !UNIV_HOTBACKUP */
/************************************************************ /************************************************************
Gets the high 32 bits in a ulint. That is makes a shift >> 32, Gets the high 32 bits in a ulint. That is makes a shift >> 32,
but since there seem to be compiler bugs in both gcc and Visual C++, but since there seem to be compiler bugs in both gcc and Visual C++,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment