summaryrefslogtreecommitdiff
path: root/src/mongo/db/prefetch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/prefetch.cpp')
-rw-r--r--src/mongo/db/prefetch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/prefetch.cpp b/src/mongo/db/prefetch.cpp
index 958f6039046..7638320722f 100644
--- a/src/mongo/db/prefetch.cpp
+++ b/src/mongo/db/prefetch.cpp
@@ -175,7 +175,7 @@ namespace {
// This will have to change for engines other than MMAP V1, because they might not have
// means for directly prefetching pages from the collection. For this purpose, acquire S
// lock on the database, instead of optimizing with IS.
- Lock::CollectionLock collLock(txn->lockState(), ns, newlm::MODE_S);
+ Lock::CollectionLock collLock(txn->lockState(), ns, MODE_S);
Collection* collection = db->getCollection( txn, ns );
if (!collection) {