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:
parent
c40ad9f56e
commit
5113d30da5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user