diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-21 10:19:03 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-21 10:44:55 -0400 |
commit | c7ca036edec9caa276b502164903023c767cf637 (patch) | |
tree | 2b3cd22675ed5cd0e38f1b621b5cabbf8d325a61 /src/mongo/db/geo | |
parent | 9dcb30e21814a36c43a795f9d8d2b5a117a99a31 (diff) | |
download | mongo-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.cpp | 4 |
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) { |