Skip to content

Commit

Permalink
MDEV-23991 fixup: Initialize the memory
Browse files Browse the repository at this point in the history
This regression was introduced in
commit afc9d00.
This is a partial backport of
commit 199863d from 10.4.
  • Loading branch information
dr-m committed Oct 30, 2020
1 parent fbcd7c0 commit 72eea39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage/innobase/dict/dict0stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,9 @@ dict_stats_update_persistent(
}

ut_ad(!dict_index_is_ibuf(index));
mutex_enter(&dict_sys->mutex);
dict_stats_empty_index(index, false);
mutex_exit(&dict_sys->mutex);

index_stats_t stats = dict_stats_analyze_index(index);

Expand Down

0 comments on commit 72eea39

Please sign in to comment.