summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/canonical_query_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/canonical_query_test.cpp')
-rw-r--r--src/mongo/db/query/canonical_query_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/canonical_query_test.cpp b/src/mongo/db/query/canonical_query_test.cpp
index 359a46ff35a..79146bb12b1 100644
--- a/src/mongo/db/query/canonical_query_test.cpp
+++ b/src/mongo/db/query/canonical_query_test.cpp
@@ -337,7 +337,7 @@ namespace {
const char* projStr,
const char *expectedStr) {
auto_ptr<CanonicalQuery> cq(canonicalize(queryStr, sortStr, projStr));
- PlanCacheKey key = cq->getPlanCacheKey();
+ const PlanCacheKey& key = cq->getPlanCacheKey();
PlanCacheKey expectedKey(expectedStr);
if (key == expectedKey) {
return;