0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

fix warning with ismaster

This commit is contained in:
Dwight Merriman 2010-04-26 21:16:57 -04:00
parent ae42460539
commit e9561a49e9

View File

@ -351,7 +351,7 @@ namespace mongo {
help << "{ isMaster : 1 }"; help << "{ isMaster : 1 }";
} }
virtual LockType locktype() const { return NONE; } virtual LockType locktype() const { return NONE; }
CmdIsMasterOld() : Command("isMaster", true, "ismaster") { } CmdIsMaster() : Command("isMaster", true, "ismaster") { }
virtual bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool /*fromRepl*/) { virtual bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool /*fromRepl*/) {
/* currently request to arbiter is (somewhat arbitrarily) an ismaster request that is not /* currently request to arbiter is (somewhat arbitrarily) an ismaster request that is not
authenticated. authenticated.