summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/haystack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/haystack.cpp')
-rw-r--r--src/mongo/db/commands/haystack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/haystack.cpp b/src/mongo/db/commands/haystack.cpp
index d760ee9b866..f9a41f0ccd2 100644
--- a/src/mongo/db/commands/haystack.cpp
+++ b/src/mongo/db/commands/haystack.cpp
@@ -103,7 +103,7 @@ public:
BSONObjBuilder& result) {
const NamespaceString nss = parseNsCollectionRequired(dbname, cmdObj);
- AutoGetCollectionForRead ctx(opCtx, nss);
+ AutoGetCollectionForReadCommand ctx(opCtx, nss);
Collection* collection = ctx.getCollection();
if (!collection) {