diff options
Diffstat (limited to 'src/mongo/s/commands/commands_public.cpp')
-rw-r--r-- | src/mongo/s/commands/commands_public.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mongo/s/commands/commands_public.cpp b/src/mongo/s/commands/commands_public.cpp index 17b2abfd7bc..f899a6cd10f 100644 --- a/src/mongo/s/commands/commands_public.cpp +++ b/src/mongo/s/commands/commands_public.cpp @@ -99,21 +99,26 @@ public: } protected: - bool passthrough(DBConfigPtr conf, const BSONObj& cmdObj, BSONObjBuilder& result) { + bool passthrough(shared_ptr<DBConfig> conf, const BSONObj& cmdObj, BSONObjBuilder& result) { return _passthrough(conf->name(), conf, cmdObj, 0, result); } - bool adminPassthrough(DBConfigPtr conf, const BSONObj& cmdObj, BSONObjBuilder& result) { + bool adminPassthrough(shared_ptr<DBConfig> conf, + const BSONObj& cmdObj, + BSONObjBuilder& result) { return _passthrough("admin", conf, cmdObj, 0, result); } - bool passthrough(DBConfigPtr conf, const BSONObj& cmdObj, int options, BSONObjBuilder& result) { + bool passthrough(shared_ptr<DBConfig> conf, + const BSONObj& cmdObj, + int options, + BSONObjBuilder& result) { return _passthrough(conf->name(), conf, cmdObj, options, result); } private: bool _passthrough(const string& db, - DBConfigPtr conf, + shared_ptr<DBConfig> conf, const BSONObj& cmdObj, int options, BSONObjBuilder& result) { |