summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/write_stage_common.cpp
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2023-05-15 14:29:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-15 16:51:56 +0000
commitae9dcbeaba01de7526e3ea45902bb9ae2905d537 (patch)
treee0acefcbe477e9cdad3a37bd45dac0cce88b6931 /src/mongo/db/exec/write_stage_common.cpp
parentda78632c6843c8e7d79b598cb7d9ff307acf5ada (diff)
downloadmongo-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.cpp15
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,