#At file:///home/tomas/mysql_src/cge-6.2-global-schema-lock/
2675 Tomas Ulin 2008-09-30
move some functions out of global scope
modified:
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.h
=== modified file 'sql/ha_ndbcluster_binlog.cc'
--- a/sql/ha_ndbcluster_binlog.cc 2008-09-30 07:16:29 +0000
+++ b/sql/ha_ndbcluster_binlog.cc 2008-09-30 07:20:43 +0000
@@ -146,6 +146,9 @@ static void ndb_free_schema_object(NDB_S
Helper functions
*/
+static bool ndbcluster_check_if_local_table(const char *dbname, const char *tabname);
+static bool ndbcluster_check_if_local_tables_in_db(THD *thd, const char *dbname);
+
#ifndef DBUG_OFF
/* purecov: begin deadcode */
static void print_records(TABLE *table, const uchar *record)
@@ -2812,7 +2815,7 @@ void set_binlog_flags(NDB_SHARE *share)
set_binlog_full(share);
}
-bool
+static bool
ndbcluster_check_if_local_table(const char *dbname, const char *tabname)
{
char key[FN_REFLEN];
@@ -2834,7 +2837,7 @@ ndbcluster_check_if_local_table(const ch
DBUG_RETURN(false);
}
-bool
+static bool
ndbcluster_check_if_local_tables_in_db(THD *thd, const char *dbname)
{
DBUG_ENTER("ndbcluster_check_if_local_tables_in_db");
=== modified file 'sql/ha_ndbcluster_binlog.h'
--- a/sql/ha_ndbcluster_binlog.h 2008-09-30 07:16:29 +0000
+++ b/sql/ha_ndbcluster_binlog.h 2008-09-30 07:20:43 +0000
@@ -159,10 +159,6 @@ void ndbcluster_binlog_init_handlerton()
Initialize the binlog part of the NDB_SHARE
*/
int ndbcluster_binlog_init_share(THD *thd, NDB_SHARE *share, TABLE *table);
-
-bool ndbcluster_check_if_local_table(const char *dbname, const char *tabname);
-bool ndbcluster_check_if_local_tables_in_db(THD *thd, const char *dbname);
-
int ndbcluster_create_binlog_setup(THD *thd, Ndb *ndb, const char *key,
uint key_len,
const char *db,
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (tomas.ulin:2675) | Tomas Ulin | 30 Sep |