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/pipeline | |
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/pipeline')
-rw-r--r-- | src/mongo/db/pipeline/document_source_cursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp index c0ae3d1eb10..a9310e2ca7c 100644 --- a/src/mongo/db/pipeline/document_source_cursor.cpp +++ b/src/mongo/db/pipeline/document_source_cursor.cpp @@ -135,7 +135,7 @@ void DocumentSourceCursor::loadBatch() { PlanExecutor::ExecState state; Document resultObj; - boost::optional<AutoGetCollectionForRead> autoColl; + boost::optional<AutoGetCollectionForReadMaybeLockFree> autoColl; if (_exec->lockPolicy() == PlanExecutor::LockPolicy::kLockExternally) { autoColl.emplace(pExpCtx->opCtx, _exec->nss()); uassertStatusOK(repl::ReplicationCoordinator::get(pExpCtx->opCtx) |