When connecting through mongos, the database 'admin' should be explicitly specified. Before the fix, mongos was returning the following error: 'assertion s/config.h:119'.
After changing empty db name to 'admin', the command works well and correctly identifies the current connection as connection to master.
When connecting through mongos, the database 'admin' should be explicitly specified. Before the fix, mongos was returning the following error: 'assertion s/config.h:119'. After changing empty db name to 'admin', the command works well and correctly identifies the current connection as connection to master.