diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-29 10:04:54 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-29 10:04:54 +0300 |
commit | e10b3fa97a47cad0e6dbcc1d1691bad655087f70 (patch) | |
tree | ad94601828d03dda5c7437f4874cfde967866d62 /storage/innobase | |
parent | cc359eae3bd38a158690067f61f31de8524730c7 (diff) | |
download | mariadb-git-e10b3fa97a47cad0e6dbcc1d1691bad655087f70.tar.gz |
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.
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/btr/btr0bulk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/btr/btr0bulk.cc b/storage/innobase/btr/btr0bulk.cc index 2655ce2a2ce..1296641d073 100644 --- a/storage/innobase/btr/btr0bulk.cc +++ b/storage/innobase/btr/btr0bulk.cc @@ -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); } |