diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tool.cpp b/tools/tool.cpp index 200d5dfef86..786d10c7534 100644 --- a/tools/tool.cpp +++ b/tools/tool.cpp @@ -93,6 +93,8 @@ int mongo::Tool::main( int argc , char ** argv ){ } } + writelock lk(""); + if ( ! hasParam( "dbpath" ) ) { _host = "127.0.0.1"; if ( _params.count( "host" ) ) |