summaryrefslogtreecommitdiff
path: root/src/mongo/db/views
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2019-04-12 13:27:54 -0400
committerGeert Bosch <geert@mongodb.com>2019-04-15 11:24:05 -0400
commit688948927bedd25c4c5c50bc7e6a253feeec4e25 (patch)
treec1beee18d1d6acf197455542a0328f0190f8dc70 /src/mongo/db/views
parent03171bed9efdf0d25054fcddd936ad04db53f4aa (diff)
downloadmongo-688948927bedd25c4c5c50bc7e6a253feeec4e25.tar.gz
SERVER-40604 Make CollectionLock interruptible
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r--src/mongo/db/views/durable_view_catalog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/views/durable_view_catalog.cpp b/src/mongo/db/views/durable_view_catalog.cpp
index f32283bad27..7d263c0ae97 100644
--- a/src/mongo/db/views/durable_view_catalog.cpp
+++ b/src/mongo/db/views/durable_view_catalog.cpp
@@ -77,7 +77,7 @@ Status DurableViewCatalogImpl::iterate(OperationContext* opCtx, Callback callbac
if (!systemViews)
return Status::OK();
- Lock::CollectionLock lk(opCtx->lockState(), _db->getSystemViewsName(), MODE_IS);
+ Lock::CollectionLock lk(opCtx, _db->getSystemViewsName(), MODE_IS);
auto cursor = systemViews->getCursor(opCtx);
while (auto record = cursor->next()) {
RecordData& data = record->data;