summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2011-09-17 23:11:44 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2011-09-17 23:11:44 +0800
commitc05baff357ff9d3e467aad7c074a85ccd81ff86a (patch)
treeaacf9b99ad23138d5a41d55325aefab2c211c170 /tools
parent684fc18ae4c3bdb61c7aa283ac5afc584ca202aa (diff)
downloadmongo-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.cpp2
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 )