diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2011-09-17 23:11:44 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2011-09-17 23:11:44 +0800 |
commit | c05baff357ff9d3e467aad7c074a85ccd81ff86a (patch) | |
tree | aacf9b99ad23138d5a41d55325aefab2c211c170 /tools | |
parent | 684fc18ae4c3bdb61c7aa283ac5afc584ca202aa (diff) | |
download | mongo-c05baff357ff9d3e467aad7c074a85ccd81ff86a.tar.gz |
add auth() call to mongostat SERVER-3875
with this fix, mongostat can work with authentication enabled.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stat.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/stat.cpp b/tools/stat.cpp index 7483222e1b6..89ff7fef0ca 100644 --- a/tools/stat.cpp +++ b/tools/stat.cpp @@ -370,6 +370,8 @@ namespace mongo { return -1; } + auth(); + _sleep = getParam( "sleep" , _sleep ); _all = hasParam( "all" ); if ( _many ) |