Skip to content

Commit 3c238ac

Browse files
committed
MDEV-20213 binlog_encryption.binlog_incident failed in buildbot, server crashed in Check::validate
Check::validate(): Relax a debug assertion. TRX_SYS_SPACE fil_space_t can be created and became visible to this assertion before fil_system.sys_space becomes initialized
1 parent 6972735 commit 3c238ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/innobase/fil/fil0fil.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4642,7 +4642,8 @@ struct Check {
46424642
ut_list_validate(space->chain, check);
46434643
ut_a(space->size == check.size);
46444644
ut_ad(space->id != TRX_SYS_SPACE
4645-
|| space == fil_system.sys_space);
4645+
|| space == fil_system.sys_space
4646+
|| fil_system.sys_space == NULL);
46464647
ut_ad(space->id != SRV_TMP_SPACE_ID
46474648
|| space == fil_system.temp_space);
46484649
return(check.n_open);

0 commit comments

Comments
 (0)