diff options
author | Geert Bosch <geert@mongodb.com> | 2019-04-12 13:27:54 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2019-04-15 11:24:05 -0400 |
commit | 688948927bedd25c4c5c50bc7e6a253feeec4e25 (patch) | |
tree | c1beee18d1d6acf197455542a0328f0190f8dc70 /src/mongo/db/pipeline/document_source_cursor.cpp | |
parent | 03171bed9efdf0d25054fcddd936ad04db53f4aa (diff) | |
download | mongo-688948927bedd25c4c5c50bc7e6a253feeec4e25.tar.gz |
SERVER-40604 Make CollectionLock interruptible
Diffstat (limited to 'src/mongo/db/pipeline/document_source_cursor.cpp')
-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 d215450b169..60225819528 100644 --- a/src/mongo/db/pipeline/document_source_cursor.cpp +++ b/src/mongo/db/pipeline/document_source_cursor.cpp @@ -231,7 +231,7 @@ Value DocumentSourceCursor::serialize(boost::optional<ExplainOptions::Verbosity> auto opCtx = pExpCtx->opCtx; auto lockMode = getLockModeForQuery(opCtx, _exec->nss()); AutoGetDb dbLock(opCtx, _exec->nss().db(), lockMode); - Lock::CollectionLock collLock(opCtx->lockState(), _exec->nss().ns(), lockMode); + Lock::CollectionLock collLock(opCtx, _exec->nss().ns(), lockMode); auto collection = dbLock.getDb() ? dbLock.getDb()->getCollection(opCtx, _exec->nss()) : nullptr; |