diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-07-14 09:30:23 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-14 17:03:46 +0000 |
commit | 5878325f0d8d49fdc7b9a41f5e24617e3f5febf9 (patch) | |
tree | b9df91b7d7c570f24e03fed941612902ad2dacd0 /src/mongo/db | |
parent | 25c8af4212815dc4c202c9e1c673185ad68343cf (diff) | |
download | mongo-5878325f0d8d49fdc7b9a41f5e24617e3f5febf9.tar.gz |
SERVER-49155 MultiIndexBlock::init() should clear _indexes on a WriteConflictException
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/catalog/multi_index_block.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp index 46d4604c113..d8ba9d10fe5 100644 --- a/src/mongo/db/catalog/multi_index_block.cpp +++ b/src/mongo/db/catalog/multi_index_block.cpp @@ -180,6 +180,7 @@ StatusWith<std::vector<BSONObj>> MultiIndexBlock::init(OperationContext* opCtx, index.block->finalizeTemporaryTables( opCtx, TemporaryRecordStore::FinalizationAction::kDelete); } + _indexes.clear(); _buildIsCleanedUp = true; }); |