diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-05-17 16:13:57 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-05-17 19:29:36 -0400 |
commit | 9687c56dad047fb222076c0eb5fb25db6a796219 (patch) | |
tree | c3d197a64776090c57cd761d104f014ba8d2a8e8 /src/mongo/db/commands/test_commands.cpp | |
parent | 4ec8e7a515ceb3e87b64ddde624404d1c4498066 (diff) | |
download | mongo-9687c56dad047fb222076c0eb5fb25db6a796219.tar.gz |
SERVER-29260 Make BSONObj argument to Command::run() const&
Diffstat (limited to 'src/mongo/db/commands/test_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/test_commands.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/test_commands.cpp b/src/mongo/db/commands/test_commands.cpp index 10016c71f0f..17cba2ee54a 100644 --- a/src/mongo/db/commands/test_commands.cpp +++ b/src/mongo/db/commands/test_commands.cpp @@ -77,7 +77,7 @@ public: } virtual bool run(OperationContext* opCtx, const string& dbname, - BSONObj& cmdObj, + const BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result) { const NamespaceString nss(parseNsCollectionRequired(dbname, cmdObj)); @@ -151,7 +151,7 @@ public: CmdSleep() : Command("sleep") {} bool run(OperationContext* opCtx, const string& ns, - BSONObj& cmdObj, + const BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result) { log() << "test only command sleep invoked"; @@ -214,7 +214,7 @@ public: std::vector<Privilege>* out) {} virtual bool run(OperationContext* opCtx, const string& dbname, - BSONObj& cmdObj, + const BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result) { const NamespaceString fullNs = parseNsCollectionRequired(dbname, cmdObj); @@ -291,7 +291,7 @@ public: virtual bool run(OperationContext* opCtx, const string& dbname, - BSONObj& cmdObj, + const BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result) { const NamespaceString nss = parseNsCollectionRequired(dbname, cmdObj); |