diff options
author | Jason Rassi <rassi@10gen.com> | 2013-12-12 23:15:28 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2013-12-13 14:01:30 -0500 |
commit | f5bc2c78e4e14785e0a39970d4163ebb062d05f9 (patch) | |
tree | 09d194ab70eb9996423740271e97e0f66dadccca /src/mongo/db/commands/geonear.cpp | |
parent | 1d034bab093f4f7d3b264c50e78207b94a0e267e (diff) | |
download | mongo-f5bc2c78e4e14785e0a39970d4163ebb062d05f9.tar.gz |
SERVER-10026 Refer to $meta values by string constants
Diffstat (limited to 'src/mongo/db/commands/geonear.cpp')
-rw-r--r-- | src/mongo/db/commands/geonear.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/geonear.cpp b/src/mongo/db/commands/geonear.cpp index 44a445a6b4a..22c4c222c95 100644 --- a/src/mongo/db/commands/geonear.cpp +++ b/src/mongo/db/commands/geonear.cpp @@ -164,8 +164,8 @@ namespace mongo { uassert(17297, "distanceMultiplier must be non-negative", distanceMultiplier >= 0); } - BSONObj projObj = BSON("$pt" << BSON("$meta" << "geoNearPoint") << - "$dis" << BSON("$meta" << "geoNearDistance")); + BSONObj projObj = BSON("$pt" << BSON("$meta" << LiteParsedQuery::metaGeoNearPoint) << + "$dis" << BSON("$meta" << LiteParsedQuery::metaGeoNearDistance)); CanonicalQuery* cq; if (!CanonicalQuery::canonicalize(ns, rewritten, BSONObj(), projObj, 0, numWanted, BSONObj(), &cq).isOK()) { |