0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

Sharding: make ismaster return ismaster=1

This commit is contained in:
Eliot Horowitz 2009-04-21 20:12:58 -04:00
parent c40ad9f56e
commit 5113d30da5

View File

@ -491,9 +491,9 @@ namespace mongo {
}
CmdIsMaster() : Command("ismaster") { }
virtual bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool) {
result.append("ismaster", 0.0);
result.append("ismaster", 1.0 );
result.append("msg", "isdbgrid");
result << "ok" << 1;
result.append("ok" , 1 );
return true;
}
} ismaster;