diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2023-05-15 14:29:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-15 16:51:56 +0000 |
commit | ae9dcbeaba01de7526e3ea45902bb9ae2905d537 (patch) | |
tree | e0acefcbe477e9cdad3a37bd45dac0cce88b6931 /src/mongo/db/exec/write_stage_common.cpp | |
parent | da78632c6843c8e7d79b598cb7d9ff307acf5ada (diff) | |
download | mongo-ae9dcbeaba01de7526e3ea45902bb9ae2905d537.tar.gz |
SERVER-77068 Use collection acquisitions in Update/Delete stages
Diffstat (limited to 'src/mongo/db/exec/write_stage_common.cpp')
-rw-r--r-- | src/mongo/db/exec/write_stage_common.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/db/exec/write_stage_common.cpp b/src/mongo/db/exec/write_stage_common.cpp index 8a6c259e8e2..8d80f16cd06 100644 --- a/src/mongo/db/exec/write_stage_common.cpp +++ b/src/mongo/db/exec/write_stage_common.cpp @@ -131,21 +131,6 @@ void PreWriteFilter::logFromMigrate(const Document& doc, "record"_attr = doc); } -void CachedShardingDescription::restoreState() { - _collectionDescription.reset(); -} - -const ScopedCollectionDescription& CachedShardingDescription::getCollectionDescription( - OperationContext* opCtx) { - if (!_collectionDescription) { - const auto scopedCss = - CollectionShardingState::assertCollectionLockedAndAcquire(opCtx, _nss); - _collectionDescription = scopedCss->getCollectionDescription(opCtx); - } - - return *_collectionDescription; -} - bool ensureStillMatches(const CollectionPtr& collection, OperationContext* opCtx, WorkingSet* ws, |