summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/mr.h
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-12-12 09:22:08 -0500
committerJames Wahlin <james.wahlin@10gen.com>2016-12-19 08:50:20 -0500
commitf3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9 (patch)
tree9d9dbfe1a2e4569ce22ec2e2dfc0cd8b337ca846 /src/mongo/db/commands/mr.h
parent4a185996c83862c2e4b911ce637591c4ff535108 (diff)
downloadmongo-f3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9.tar.gz
SERVER-27306 Remove AutoGetCollection methods with std::string namespace
Diffstat (limited to 'src/mongo/db/commands/mr.h')
-rw-r--r--src/mongo/db/commands/mr.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/commands/mr.h b/src/mongo/db/commands/mr.h
index 89738ea1259..aa729f49e7f 100644
--- a/src/mongo/db/commands/mr.h
+++ b/src/mongo/db/commands/mr.h
@@ -37,6 +37,7 @@
#include "mongo/db/curop.h"
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/jsobj.h"
+#include "mongo/db/namespace_string.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/scripting/engine.h"
@@ -195,7 +196,7 @@ public:
Config(const std::string& _dbname, const BSONObj& cmdObj);
std::string dbname;
- std::string ns;
+ NamespaceString nss;
// options
bool verbose;
@@ -219,8 +220,8 @@ public:
BSONObj scopeSetup;
// output tables
- std::string incLong;
- std::string tempNamespace;
+ NamespaceString incLong;
+ NamespaceString tempNamespace;
enum OutputType {
REPLACE, // atomically replace the collection
@@ -231,7 +232,7 @@ public:
struct OutputOptions {
std::string outDB;
std::string collectionName;
- std::string finalNamespace;
+ NamespaceString finalNamespace;
// if true, no lock during output operation
bool outNonAtomic;
OutputType outType;
@@ -333,7 +334,7 @@ public:
/**
* inserts with correct replication semantics
*/
- void insert(const std::string& ns, const BSONObj& o);
+ void insert(const NamespaceString& nss, const BSONObj& o);
// ------ simple accessors -----
@@ -372,7 +373,7 @@ public:
void switchMode(bool jsMode);
void bailFromJS();
- static Collection* getCollectionOrUassert(Database* db, StringData ns);
+ static Collection* getCollectionOrUassert(Database* db, const NamespaceString& nss);
const Config& _config;
DBDirectClient _db;