summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r--src/mongo/db/dbhelpers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp
index 75ee7c1283e..89f71139f07 100644
--- a/src/mongo/db/dbhelpers.cpp
+++ b/src/mongo/db/dbhelpers.cpp
@@ -138,13 +138,12 @@ RecordId Helpers::findOne(OperationContext* opCtx,
}
bool Helpers::findById(OperationContext* opCtx,
- StringData ns,
+ const NamespaceString& nss,
BSONObj query,
BSONObj& result,
bool* nsFound,
bool* indexFound) {
// TODO ForRead?
- NamespaceString nss{ns};
CollectionPtr collection =
CollectionCatalog::get(opCtx)->lookupCollectionByNamespace(opCtx, nss);
if (!collection) {