diff options
-rw-r--r-- | storage/innobase/page/page0page.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/page/page0page.cc b/storage/innobase/page/page0page.cc index fcc77aeb591..fb528843da6 100644 --- a/storage/innobase/page/page0page.cc +++ b/storage/innobase/page/page0page.cc @@ -1569,7 +1569,7 @@ page_dir_balance_slot( /* The last directory slot cannot be balanced with the upper neighbor, as there is none. */ - if (UNIV_UNLIKELY(slot_no == page_dir_get_n_slots(page) - 1)) { + if (UNIV_UNLIKELY(slot_no + 1 == page_dir_get_n_slots(page))) { return; } |