diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-07-14 09:30:23 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-07-17 01:16:44 -0400 |
commit | b29c1758d425a73daddda6256d677add47683c59 (patch) | |
tree | 59352b3b2e8e32c5863123dd6560046da82fd63f | |
parent | 31b08e7d7e095132b7db3e8f4a4271478cf353ab (diff) | |
download | mongo-b29c1758d425a73daddda6256d677add47683c59.tar.gz |
SERVER-49155 MultiIndexBlock::init() should clear _indexes on a WriteConflictException
(cherry picked from commit 5878325f0d8d49fdc7b9a41f5e24617e3f5febf9)
-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 a298ffb9428..1e500dd01d9 100644 --- a/src/mongo/db/catalog/multi_index_block.cpp +++ b/src/mongo/db/catalog/multi_index_block.cpp @@ -197,6 +197,7 @@ StatusWith<std::vector<BSONObj>> MultiIndexBlock::init(OperationContext* opCtx, for (auto& index : _indexes) { index.block->deleteTemporaryTables(opCtx); } + _indexes.clear(); _buildIsCleanedUp = true; }); |