Skip to content

Commit 1bbb67b

Browse files
committed
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.
1 parent bada05a commit 1bbb67b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

storage/innobase/srv/srv0srv.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,8 +2290,6 @@ void
22902290
srv_purge_wakeup()
22912291
{
22922292
ut_ad(!srv_read_only_mode);
2293-
ut_ad(!sync_check_iterate(sync_check()));
2294-
22952293
if (srv_force_recovery >= SRV_FORCE_NO_BACKGROUND) {
22962294
return;
22972295
}

storage/innobase/trx/trx0purge.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ void purge_sys_t::resume()
13491349
ut_ad(!srv_undo_sources);
13501350
return;
13511351
}
1352-
1352+
ut_ad(!sync_check_iterate(sync_check()));
13531353
rw_lock_x_lock(&latch);
13541354
int32_t paused= m_paused--;
13551355
ut_a(paused);

0 commit comments

Comments
 (0)