Commit 1bbb67b3 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix assertion with --innodb-sync-debug=ON

srv_purge_wakeup() is called under protection of latch in
purge_sys_t::resume()

move sync check code before acquiring that latch.
parent bada05a8
......@@ -2290,8 +2290,6 @@ void
srv_purge_wakeup()
{
ut_ad(!srv_read_only_mode);
ut_ad(!sync_check_iterate(sync_check()));
if (srv_force_recovery >= SRV_FORCE_NO_BACKGROUND) {
return;
}
......
......@@ -1349,7 +1349,7 @@ void purge_sys_t::resume()
ut_ad(!srv_undo_sources);
return;
}
ut_ad(!sync_check_iterate(sync_check()));
rw_lock_x_lock(&latch);
int32_t paused= m_paused--;
ut_a(paused);
......
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