On this page
shardingStatehas the following prototype form:
To run the command, you must run against the
mongodis a primary member of a replica set, and
mongodinstance is a member of a sharded cluster.
shardingState will return the following document:
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.