Commit 4ac8c4c8 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-24167 fixup: Stricter assertion

log_free_check(): Assert that the current thread is not holding
lock_sys.latch in any mode.

This fixes up commit 5f2dcd11
parent c3a00dfa
......@@ -1067,7 +1067,7 @@ NOTE that this function may only be called while not holding
any synchronization objects except dict_sys.latch. */
void log_free_check()
{
ut_ad(!lock_sys.is_writer());
ut_ad(!lock_sys.is_holder());
if (log_sys.check_flush_or_checkpoint())
log_check_margins();
}
......
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