diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-10-15 15:23:01 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-09 16:01:56 +0000 |
commit | d1f501029bcc28a58226f901d9e4946dd1fd26e8 (patch) | |
tree | 751733e025e0cf88e323cb73ae557597baafe63a /src/mongo/db/exec | |
parent | 135f4010cfc831217ba8acd492070ea88560b5e0 (diff) | |
download | mongo-d1f501029bcc28a58226f901d9e4946dd1fd26e8.tar.gz |
SERVER-51677 Use LockFree Collection RAII helpers in find, getmore and aggregation
Lock free reads still only activated based on disableLockFreeReads server parameter
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r-- | src/mongo/db/exec/requires_collection_stage.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/exec/requires_collection_stage.cpp b/src/mongo/db/exec/requires_collection_stage.cpp index f0345d7b311..7df44e2b8ed 100644 --- a/src/mongo/db/exec/requires_collection_stage.cpp +++ b/src/mongo/db/exec/requires_collection_stage.cpp @@ -38,10 +38,6 @@ void RequiresCollectionStage::doSaveState() { } void RequiresCollectionStage::doRestoreState(const RestoreContext& context) { - // We should be holding a lock associated with the name of the collection prior to yielding, - // even if the collection was renamed during yield. - dassert(opCtx()->lockState()->isCollectionLockedForMode(_nss, MODE_IS)); - auto collectionDropped = [this]() { uasserted(ErrorCodes::QueryPlanKilled, str::stream() << "collection dropped. UUID " << _collectionUUID); |