Skip to content

Commit 51a9889

Browse files
ndbcluster
- cherrypick warning fixes from trunk-cluster
1 parent 48c34bc commit 51a9889

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

sql/ha_ndbcluster.cc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10286,10 +10286,10 @@ delete_table_drop_share(NDB_SHARE* share, const char * path)
1028610286
/* static version which does not need a handler */
1028710287

1028810288
int
10289-
ha_ndbcluster::drop_table(THD *thd, ha_ndbcluster *h, Ndb *ndb,
10290-
const char *path,
10291-
const char *db,
10292-
const char *table_name)
10289+
ha_ndbcluster::drop_table_impl(THD *thd, ha_ndbcluster *h, Ndb *ndb,
10290+
const char *path,
10291+
const char *db,
10292+
const char *table_name)
1029310293
{
1029410294
DBUG_ENTER("ha_ndbcluster::ndbcluster_delete_table");
1029510295
NDBDICT *dict= ndb->getDictionary();
@@ -10481,8 +10481,8 @@ int ha_ndbcluster::delete_table(const char *name)
1048110481
If it was already gone it might have been dropped
1048210482
remotely, give a warning and then drop .ndb file.
1048310483
*/
10484-
if (!(error= drop_table(thd, this, ndb, name,
10485-
m_dbname, m_tabname)) ||
10484+
if (!(error= drop_table_impl(thd, this, ndb, name,
10485+
m_dbname, m_tabname)) ||
1048610486
error == HA_ERR_NO_SUCH_TABLE)
1048710487
{
1048810488
/* Call ancestor function to delete .ndb file */
@@ -11288,7 +11288,7 @@ int ndbcluster_drop_database_impl(THD *thd, const char *path)
1128811288
while ((tabname=it++))
1128911289
{
1129011290
tablename_to_filename(tabname, tmp, FN_REFLEN - (tmp - full_path)-1);
11291-
if (ha_ndbcluster::drop_table(thd, 0, ndb, full_path, dbname, tabname))
11291+
if (ha_ndbcluster::drop_table_impl(thd, 0, ndb, full_path, dbname, tabname))
1129211292
{
1129311293
const NdbError err= dict->getNdbError();
1129411294
if (err.code != 709 && err.code != 723)
@@ -17289,7 +17289,8 @@ mysql_declare_plugin(ndbcluster)
1728917289
0x0100, /* plugin version */
1729017290
ndb_status_variables_export,/* status variables */
1729117291
system_variables, /* system variables */
17292-
NULL /* config options */
17292+
NULL, /* config options */
17293+
0 /* flags */
1729317294
},
1729417295
{
1729517296
MYSQL_STORAGE_ENGINE_PLUGIN,
@@ -17303,7 +17304,8 @@ mysql_declare_plugin(ndbcluster)
1730317304
0x0001, /* plugin version */
1730417305
NULL, /* status variables */
1730517306
ndbinfo_system_variables, /* system variables */
17306-
NULL /* config options */
17307+
NULL, /* config options */
17308+
0 /* flags */
1730717309
}
1730817310
mysql_declare_plugin_end;
1730917311

sql/ha_ndbcluster.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ static void set_tabname(const char *pathname, char *tabname);
495495
NDB_SHARE *share);
496496

497497
void check_read_before_write_removal();
498-
static int drop_table(THD *thd, ha_ndbcluster *h, Ndb *ndb,
499-
const char *path,
500-
const char *db,
501-
const char *table_name);
498+
static int drop_table_impl(THD *thd, ha_ndbcluster *h, Ndb *ndb,
499+
const char *path,
500+
const char *db,
501+
const char *table_name);
502502

503503
int add_index_impl(THD *thd, TABLE *table_arg,
504504
KEY *key_info, uint num_of_keys);

0 commit comments

Comments
 (0)