-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: sh
-
None
-
None
-
Developer Tools
Currently sh.status() displays if [balancing](https://www.mongodb.com/docs/manual/reference/method/sh.disableBalancing/) is enabled or disabled for a collection.
There is another setting that also affects whether we can move data for a collection - via the setAllowMigrations command. Once this is set to false, we will set the field permitMigrations to false in config.collections. However, currently when we run sh.status(), there is no visibility on this state. It would be nice to display this as well.
- Note that there is another field called allowMigrations which is used internally (SERVER-92546).
We may check both fields permitMigrations and allowMigrations , then display migration as disabled if any of them is false.