From c05baff357ff9d3e467aad7c074a85ccd81ff86a Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Sat, 17 Sep 2011 23:11:44 +0800 Subject: [PATCH] add auth() call to mongostat SERVER-3875 with this fix, mongostat can work with authentication enabled. --- tools/stat.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 )