diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2011-09-18 23:39:55 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2011-09-18 23:40:29 +0800 |
commit | ebbeded5ba34ed5bef7bfac215786ed3ce441f7e (patch) | |
tree | 5047b91d5990a3da7fb0753d291a21b2274917b8 /tools | |
parent | c05baff357ff9d3e467aad7c074a85ccd81ff86a (diff) | |
download | mongo-ebbeded5ba34ed5bef7bfac215786ed3ce441f7e.tar.gz |
move auth() to runNormal() thus this fix only affects normal cases
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/stat.cpp b/tools/stat.cpp index 89ff7fef0ca..e1eda8db3c1 100644 --- a/tools/stat.cpp +++ b/tools/stat.cpp @@ -370,8 +370,6 @@ namespace mongo { return -1; } - auth(); - _sleep = getParam( "sleep" , _sleep ); _all = hasParam( "all" ); if ( _many ) @@ -425,6 +423,8 @@ namespace mongo { int rowCount = getParam( "rowcount" , 0 ); int rowNum = 0; + auth(); + BSONObj prev = stats(); if ( prev.isEmpty() ) return -1; |