Commit e10b3fa9 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-19231: Correct an assertion

BtrBulk::finish(): On error, the B-tree can be corrupted. Only upon
successful completion, it makes sense to validate the index.
parent cc359eae
......@@ -1050,7 +1050,7 @@ BtrBulk::finish(dberr_t err)
ut_ad(!sync_check_iterate(dict_sync_check()));
ut_ad(err == DB_SUCCESS
ut_ad(err != DB_SUCCESS
|| btr_validate_index(m_index, NULL, false) == DB_SUCCESS);
return(err);
}
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