summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/internal_plans.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r--src/mongo/db/query/internal_plans.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h
index 5f992a65b73..be2d6089f4e 100644
--- a/src/mongo/db/query/internal_plans.h
+++ b/src/mongo/db/query/internal_plans.h
@@ -65,7 +65,7 @@ namespace mongo {
* Return a collection scan. Caller owns pointer.
*/
static PlanExecutor* collectionScan(OperationContext* txn,
- const StringData& ns,
+ StringData ns,
Collection* collection,
const Direction direction = FORWARD,
const RecordId startLoc = RecordId()) {