0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-25 09:19:32 +01:00

add auth() call to mongostat SERVER-3875

with this fix, mongostat can work with authentication enabled.
This commit is contained in:
Lu Guanqun 2011-09-17 23:11:44 +08:00
parent 684fc18ae4
commit c05baff357

View File

@ -370,6 +370,8 @@ namespace mongo {
return -1;
}
auth();
_sleep = getParam( "sleep" , _sleep );
_all = hasParam( "all" );
if ( _many )