Commit c2d9c0ce authored by Thirunarayanan Balathandayuthapani's avatar Thirunarayanan Balathandayuthapani Committed by Marko Mäkelä

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>
parent 35652ed6
...@@ -1153,10 +1153,10 @@ dict_stats_analyze_index_level( ...@@ -1153,10 +1153,10 @@ dict_stats_analyze_index_level(
leaf-level delete marks because delete marks on leaf-level delete marks because delete marks on
non-leaf level do not make sense. */ non-leaf level do not make sense. */
if (level == 0 && srv_stats_include_delete_marked ? 0: if (level == 0 && (srv_stats_include_delete_marked ? 0:
rec_get_deleted_flag( rec_get_deleted_flag(
rec, rec,
page_is_comp(btr_pcur_get_page(&pcur)))) { page_is_comp(btr_pcur_get_page(&pcur))))) {
if (rec_is_last_on_page if (rec_is_last_on_page
&& !prev_rec_is_copied && !prev_rec_is_copied
......
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