Details
Description
All config server commands should be idempotent, to handle config server primary stepdown. Currently, enableSharding, a command in the process of being moved to config from mongos, returns an AlreadyInitialized error when there is an attempt to retry the command. This ticket should make the command return the same status as the first run.
Additionally, update the enableSharding unit test expecting the AlreadyInitialized error to reflect this change.