Commit 56843d62 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-24258 fixup: Correct a condition

dict_stats_process_entry_from_defrag_pool(): Restore a condition as it was
before commit 82b7c561.
parent ae8c8d88
......@@ -190,8 +190,8 @@ static void dict_stats_process_entry_from_defrag_pool()
/* If the table is no longer cached, we've already lost the in
memory stats so there's nothing really to write to disk. */
dict_table_t *table= dict_sys.find_table(table_id);
dict_index_t *index= table && table->corrupted
? nullptr : dict_table_find_index_on_id(table, index_id);
dict_index_t *index= table && !table->corrupted
? dict_table_find_index_on_id(table, index_id) : nullptr;
const bool save= index && !index->is_corrupted();
if (save)
table->acquire();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment