summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-04-21 10:19:03 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-04-21 10:44:55 -0400
commitc7ca036edec9caa276b502164903023c767cf637 (patch)
tree2b3cd22675ed5cd0e38f1b621b5cabbf8d325a61 /src/mongo/db/geo
parent9dcb30e21814a36c43a795f9d8d2b5a117a99a31 (diff)
downloadmongo-c7ca036edec9caa276b502164903023c767cf637.tar.gz
SERVER-23480 make Command::parseNsCollectionRequired and oplog.cpp's parseNs return NamespaceString
Diffstat (limited to 'src/mongo/db/geo')
-rw-r--r--src/mongo/db/geo/haystack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/geo/haystack.cpp b/src/mongo/db/geo/haystack.cpp
index 9fc3a2cccf8..6e736ca91ea 100644
--- a/src/mongo/db/geo/haystack.cpp
+++ b/src/mongo/db/geo/haystack.cpp
@@ -93,9 +93,9 @@ public:
int,
string& errmsg,
BSONObjBuilder& result) {
- const std::string ns = parseNsCollectionRequired(dbname, cmdObj);
+ const NamespaceString nss = parseNsCollectionRequired(dbname, cmdObj);
- AutoGetCollectionForRead ctx(txn, ns);
+ AutoGetCollectionForRead ctx(txn, nss.ns());
Collection* collection = ctx.getCollection();
if (!collection) {