summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2014-02-07 12:09:54 -0500
committerBenety Goh <benety@mongodb.com>2014-02-11 16:11:19 -0500
commit3623d555f54d7fe168029085142f6d6dee03c96e (patch)
treed61be4f63512a3ff10b4fae95c76d4c045b7af08 /src/mongo/db/commands
parentcc950771c0b7975be18b373f3e4fd009bccc606f (diff)
downloadmongo-3623d555f54d7fe168029085142f6d6dee03c96e.tar.gz
SERVER-12641 support projections on DBRef fields
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/distinct.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp
index 22d8f1eddaa..154015d75bc 100644
--- a/src/mongo/db/commands/distinct.cpp
+++ b/src/mongo/db/commands/distinct.cpp
@@ -100,8 +100,10 @@ namespace mongo {
}
Runner* rawRunner;
- if (!getRunnerDistinct(collection, query, key, &rawRunner).isOK()) {
- uasserted(17216, "Can't get runner for query " + query.toString());
+ Status status = getRunnerDistinct(collection, query, key, &rawRunner);
+ if (!status.isOK()) {
+ uasserted(17216, mongoutils::str::stream() << "Can't get runner for query "
+ << query << ": " << status.toString());
return 0;
}