1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Do not give warnings about #rocksdb directory information_schema

"select * from information_schema.tables limit 1" was giving the following
warning in the log:

[ERROR] Invalid (old?) table or database name '#rocksdb'
This commit is contained in:
Monty
2022-11-25 15:25:44 +02:00
committed by Sergei Petrunia
parent 6c4076fac4
commit 01760333e8
2 changed files with 2 additions and 1 deletions

View File

@ -6580,7 +6580,7 @@ bool Discovered_table_list::add_file(const char *fname)
{
bool is_temp= strncmp(fname, STRING_WITH_LEN(tmp_file_prefix)) == 0;
if (is_temp && !with_temps)
if ((is_temp && !with_temps) || !strncmp(fname,STRING_WITH_LEN(ROCKSDB_DIRECTORY_NAME)))
return 0;
char tname[SAFE_NAME_LEN + 1];

View File

@ -92,6 +92,7 @@ typedef ulonglong nested_join_map;
#define tmp_file_prefix "#sql" /**< Prefix for tmp tables */
#define tmp_file_prefix_length 4
#define TMP_TABLE_KEY_EXTRA 8
#define ROCKSDB_DIRECTORY_NAME "#rocksdb"
/**
Enumerate possible types of a table from re-execution