summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/multi_index_block.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2021-01-15 12:11:36 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-15 18:30:33 +0000
commite077301e21429fb9cd6f179fb0552336e39183bd (patch)
tree0012651894bb469f95b402d49e7548a176e72901 /src/mongo/db/catalog/multi_index_block.cpp
parentd19974ec969926713fe6485217f64dcf1b7b62a2 (diff)
downloadmongo-e077301e21429fb9cd6f179fb0552336e39183bd.tar.gz
SERVER-51762 Delete code for old unique index format
This refactor makes the following improvements: - Deletes dead code that allows multiple RecordIds to coexist for the old unique index format - Deletes the obselete "trigger write conflict" code that applied to background indexes and has been superseded by hybrid indexes - Factors out three distinct implementations of indexes for WiredTiger: WiredTigerIndexStandard (non-unique indexes), WiredTigerIdIndex (_id index), and WiredTigerIndexUnique (non-_id unique indexes) - API modernization for the SortedDataInterface::BulkBuilder
Diffstat (limited to 'src/mongo/db/catalog/multi_index_block.cpp')
-rw-r--r--src/mongo/db/catalog/multi_index_block.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp
index c145eaf635e..11d3304d0f3 100644
--- a/src/mongo/db/catalog/multi_index_block.cpp
+++ b/src/mongo/db/catalog/multi_index_block.cpp
@@ -1161,10 +1161,6 @@ Status MultiIndexBlock::_scanReferenceIdxInsertAndCommit(OperationContext* opCtx
"Reference index is empty.",
"refIdx"_attr = refIdx->descriptor()->indexName());
_phase = IndexBuildPhaseEnum::kBulkLoad;
- WriteUnitOfWork wuow(opCtx);
- // Allow the commit operation to be interruptible:
- bulkLoader->commit(true);
- wuow.commit();
return Status::OK();
}
@@ -1206,12 +1202,6 @@ Status MultiIndexBlock::_scanReferenceIdxInsertAndCommit(OperationContext* opCtx
}
_phase = IndexBuildPhaseEnum::kBulkLoad;
-
- WriteUnitOfWork wuow(opCtx);
- // Allow the commit operation to be interruptible:
- bulkLoader->commit(true);
- wuow.commit();
-
return Status::OK();
}