Skip to content

Commit 3af9986

Browse files
committed
MariaRocks port: dir_entry has number_of_files with one 'f' in MariaDB
1 parent a06faac commit 3af9986

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

storage/rocksdb/rdb_datadic.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,7 @@ bool Rdb_validate_tbls::scan_for_frms(
31283128

31293129
/* Scan through the files in the directory */
31303130
struct fileinfo* file_info = dir_info->dir_entry;
3131-
for (uint ii = 0; ii < dir_info->number_off_files; ii++, file_info++)
3131+
for (uint ii = 0; ii < dir_info->number_of_files; ii++, file_info++)
31323132
{
31333133
/* Find .frm files that are not temp files (those that start with '#') */
31343134
const char* ext = strrchr(file_info->name, '.');
@@ -3179,7 +3179,7 @@ bool Rdb_validate_tbls::compare_to_actual_tables(
31793179
}
31803180

31813181
file_info = dir_info->dir_entry;
3182-
for (uint ii = 0; ii < dir_info->number_off_files; ii++, file_info++)
3182+
for (uint ii = 0; ii < dir_info->number_of_files; ii++, file_info++)
31833183
{
31843184
/* Ignore files/dirs starting with '.' */
31853185
if (file_info->name[0] == '.')

storage/rocksdb/rdb_sst_info.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void Rdb_sst_info::init(rocksdb::DB* db)
398398

399399
// Scan through the files in the directory
400400
struct fileinfo* file_info= dir_info->dir_entry;
401-
for (uint ii= 0; ii < dir_info->number_off_files; ii++, file_info++)
401+
for (uint ii= 0; ii < dir_info->number_of_files; ii++, file_info++)
402402
{
403403
// find any files ending with m_suffix ...
404404
std::string name= file_info->name;

0 commit comments

Comments
 (0)