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.
This commit is contained in:
Marko Mäkelä 2018-01-16 07:46:51 +02:00
parent 0292cd0a27
commit f5e158183c

View File

@ -3711,9 +3711,9 @@ btr_cur_update_in_place(
to this record */
btr_search_update_hash_on_delete(cursor);
}
}
rw_lock_x_lock(ahi_latch);
rw_lock_x_lock(ahi_latch);
}
assert_block_ahi_valid(block);
#endif /* BTR_CUR_HASH_ADAPT */