Skip to content

Commit f5e1581

Browse files
committed
Follow-up fix to MDEV-14441: Correct a misplaced condition
btr_cur_update_in_place(): The call rw_lock_x_lock(ahi_latch) must of course be inside the if (ahi_latch) condition. This is a mistake that I made when backporting the fix-under-development from 10.3.
1 parent 0292cd0 commit f5e1581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/btr/btr0cur.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3711,9 +3711,9 @@ btr_cur_update_in_place(
37113711
to this record */
37123712
btr_search_update_hash_on_delete(cursor);
37133713
}
3714-
}
37153714

3716-
rw_lock_x_lock(ahi_latch);
3715+
rw_lock_x_lock(ahi_latch);
3716+
}
37173717

37183718
assert_block_ahi_valid(block);
37193719
#endif /* BTR_CUR_HASH_ADAPT */

0 commit comments

Comments
 (0)