summaryrefslogtreecommitdiff
path: root/tools/stat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/stat.cpp')
-rw-r--r--tools/stat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/stat.cpp b/tools/stat.cpp
index 7483222..e1eda8d 100644
--- a/tools/stat.cpp
+++ b/tools/stat.cpp
@@ -423,6 +423,8 @@ namespace mongo {
int rowCount = getParam( "rowcount" , 0 );
int rowNum = 0;
+ auth();
+
BSONObj prev = stats();
if ( prev.isEmpty() )
return -1;