发布于 2015-09-14 15:02:44 | 101 次阅读 | 评论: 0 | 来源: 网络整理
The shardingState command returns true if the mongod instance is a member of a sharded cluster. Run the command using the following syntax:
{ shardingState: 1 }
警告
This command obtains a write lock on the affected database and will block other operations until it has completed; however, the operation is typically short lived.