Skip to content

Commit 15f2bcf

Browse files
committed
MariaRocks port: get rid of "invalid table name" in the error log
filename_to_tablename() in MariaDB produces warnings when its is called for temporary file names. Don't call this function for temporary filename (as we don't need its result anyway)
1 parent 1d1211a commit 15f2bcf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5089,9 +5089,7 @@ int ha_rocksdb::create_cfs(const TABLE *table_arg, Rdb_tbl_def *tbl_def_arg,
50895089
DBUG_ENTER("ha_rocksdb::create_cfs");
50905090

50915091
char tablename_sys[NAME_LEN + 1];
5092-
5093-
my_core::filename_to_tablename(tbl_def_arg->base_tablename().c_str(),
5094-
tablename_sys, sizeof(tablename_sys));
5092+
bool tsys_set= false;
50955093

50965094
/*
50975095
The first loop checks the index parameters and creates
@@ -5105,6 +5103,13 @@ int ha_rocksdb::create_cfs(const TABLE *table_arg, Rdb_tbl_def *tbl_def_arg,
51055103
!is_hidden_pk(i, table_arg, tbl_def_arg) &&
51065104
tbl_def_arg->base_tablename().find(tmp_file_prefix) != 0)
51075105
{
5106+
if (!tsys_set)
5107+
{
5108+
tsys_set= true;
5109+
my_core::filename_to_tablename(tbl_def_arg->base_tablename().c_str(),
5110+
tablename_sys, sizeof(tablename_sys));
5111+
}
5112+
51085113
for (uint part= 0; part < table_arg->key_info[i].ext_key_parts; part++)
51095114
{
51105115
if (!rdb_is_index_collation_supported(

0 commit comments

Comments
 (0)