Skip to content
Permalink
Browse files
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.
  • Loading branch information
dr-m committed Apr 29, 2019
1 parent cc359ea commit e10b3fa
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
}

0 comments on commit e10b3fa

Please sign in to comment.