diff options
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, |