本文共 424 字,大约阅读时间需要 1 分钟。
To detect if the MongoDB instance that your client is connectedto is , use the command. When aclient connects to a , returnsa document with a msg field that holds the stringisdbgrid. For example:
{ "ismaster" : true, "msg" : "isdbgrid", "maxBsonObjectSize" : 16777216, "ok" : 1}If the application is instead connected to a , thereturned document does not include the isdbgrid string.
转载地址:http://hodli.baihongyu.com/