diff options
author | William Schultz <william.schultz@mongodb.com> | 2019-08-12 16:24:04 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2019-08-12 16:24:04 -0400 |
commit | 20ba91db04c0b7b3d10fe2527b6938b1a14fcaa6 (patch) | |
tree | 22f677d19f2ed7865bc6f1feaa6538831f11a27a /src/mongo/db/index/index_descriptor.cpp | |
parent | ff468c0b65af2cc978aa549d0ec7ed56553abf5a (diff) | |
download | mongo-20ba91db04c0b7b3d10fe2527b6938b1a14fcaa6.tar.gz |
SERVER-41766 Remove obsolete code for tracking multikey writes inside multi-document transactions
Now that we update the multikey flag within a transaction in a side transaction, the in-memory state about the multikey write will be naturally visible to subsequent writes inside the transaction, so we don't need to keep around any extra structures to enforce this anymore.
Diffstat (limited to 'src/mongo/db/index/index_descriptor.cpp')
-rw-r--r-- | src/mongo/db/index/index_descriptor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index/index_descriptor.cpp b/src/mongo/db/index/index_descriptor.cpp index 8ebf493ba00..77478c7e6a6 100644 --- a/src/mongo/db/index/index_descriptor.cpp +++ b/src/mongo/db/index/index_descriptor.cpp @@ -158,8 +158,8 @@ IndexVersion IndexDescriptor::getDefaultIndexVersion() { return IndexVersion::kV2; } -bool IndexDescriptor::isMultikey(OperationContext* opCtx) const { - return _collection->getIndexCatalog()->isMultikey(opCtx, this); +bool IndexDescriptor::isMultikey() const { + return _collection->getIndexCatalog()->isMultikey(this); } MultikeyPaths IndexDescriptor::getMultikeyPaths(OperationContext* opCtx) const { |