diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-04-25 09:44:44 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-04-28 14:57:37 -0400 |
commit | 9fb79929f9e957ba62c41d2114ef5a78dc4965b5 (patch) | |
tree | 73fb5936fe9940cfd444a2342399ae4c8ee07123 /src/mongo/db/commands.h | |
parent | 5c702fedb3216b1a327d3791cd9e995fefc4ab2f (diff) | |
download | mongo-9fb79929f9e957ba62c41d2114ef5a78dc4965b5.tar.gz |
SERVER-27991 Allow find and listIndexes to accept UUID argument
This patch allows callers of the find and listIndexes commands to
pass either a UUID or a collection name as the collection identifier
argument.
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 66a1f41da6c..05493e2c444 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -80,6 +80,9 @@ protected: // The first field is interpreted as a collection name. static NamespaceString parseNsCollectionRequired(const std::string& dbname, const BSONObj& cmdObj); + static NamespaceString parseNsOrUUID(OperationContext* opCtx, + const std::string& dbname, + const BSONObj& cmdObj); public: typedef StringMap<Command*> CommandMap; |