diff --git a/storage/innobase/page/page0cur.cc b/storage/innobase/page/page0cur.cc index 01f379b96fe..d858a35c946 100644 --- a/storage/innobase/page/page0cur.cc +++ b/storage/innobase/page/page0cur.cc @@ -935,7 +935,7 @@ static void page_cur_insert_rec_write_log( } /* If versions are different, then don't compare the records */ - if (cur_version != ins_version && cur_extra_size == extra_size) { + if (cur_version == ins_version && cur_extra_size == extra_size) { ulint min_rec_size = std::min(cur_rec_size, rec_size); const byte *cur_ptr = cursor_rec - cur_extra_size;