Skip to content

Commit c2d9c0c

Browse files
Thirunarayanandr-m
authored andcommitted
Bug #24585978 INNODB: ASSERTION TOTAL_RECS > 0 FAILURE IN FILE DICT0STATS.CC
Analysis: ======== There was missing bracket for IF conditon in dict_stats_analyze_index_level() and it leads to wrong result. Fix: ==== Fix the IF condition in dict_stats_analyze_index_level() so that it satisfied the if condtion only if level is zero. Reviewed-by : Jimmy Yang <jimmy.yang@oracle.com>
1 parent 35652ed commit c2d9c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/dict/dict0stats.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,10 +1153,10 @@ dict_stats_analyze_index_level(
11531153
leaf-level delete marks because delete marks on
11541154
non-leaf level do not make sense. */
11551155

1156-
if (level == 0 && srv_stats_include_delete_marked ? 0:
1156+
if (level == 0 && (srv_stats_include_delete_marked ? 0:
11571157
rec_get_deleted_flag(
11581158
rec,
1159-
page_is_comp(btr_pcur_get_page(&pcur)))) {
1159+
page_is_comp(btr_pcur_get_page(&pcur))))) {
11601160

11611161
if (rec_is_last_on_page
11621162
&& !prev_rec_is_copied

0 commit comments

Comments
 (0)