Commit 545f49da authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-12103: Move a misplaced assertion.

parent ab8199f3
...@@ -3073,7 +3073,6 @@ recv_init_crash_recovery_spaces(void) ...@@ -3073,7 +3073,6 @@ recv_init_crash_recovery_spaces(void)
for (recv_spaces_t::iterator i = recv_spaces.begin(); for (recv_spaces_t::iterator i = recv_spaces.begin();
i != recv_spaces.end(); i++) { i != recv_spaces.end(); i++) {
ut_ad(!is_predefined_tablespace(i->first)); ut_ad(!is_predefined_tablespace(i->first));
ut_ad(i->second.deleted || i->second.name != "");
ut_ad(!i->second.deleted || !i->second.space); ut_ad(!i->second.deleted || !i->second.space);
if (i->second.deleted) { if (i->second.deleted) {
...@@ -3095,6 +3094,8 @@ recv_init_crash_recovery_spaces(void) ...@@ -3095,6 +3094,8 @@ recv_init_crash_recovery_spaces(void)
missing_spaces.insert(i->first); missing_spaces.insert(i->first);
flag_deleted = true; flag_deleted = true;
} }
ut_ad(i->second.deleted || i->second.name != "");
} }
if (flag_deleted) { if (flag_deleted) {
......
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