diff options
author | Aaron <aaron@10gen.com> | 2010-01-26 14:40:06 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-01-26 14:40:06 -0800 |
commit | d0847c99123bc5d2362a90ec11316724256b85e2 (patch) | |
tree | a582f7309433692f19a2f397b8198134a6367fb7 /tools | |
parent | a13d0b88c23e553a278244490613a13292027979 (diff) | |
download | mongo-d0847c99123bc5d2362a90ec11316724256b85e2.tar.gz |
SERVER-308 add support for --directoryperdb option
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tool.cpp b/tools/tool.cpp index b312d917e90..16a13ba7957 100644 --- a/tools/tool.cpp +++ b/tools/tool.cpp @@ -26,6 +26,7 @@ mongo::Tool::Tool( string name , string defaultDB , string defaultCollection ) : ("username,u",po::value<string>(), "username" ) ("password,p",po::value<string>(), "password" ) ("dbpath",po::value<string>(), "directly access mongod data files in this path, instead of connecting to a mongod instance" ) + ("directoryperdb", "if dbpath specified, each db is in a separate directory" ) ("verbose,v", "be more verbose (include multiple times for more verbosity e.g. -vvvvv)") ; @@ -125,6 +126,9 @@ int mongo::Tool::main( int argc , char ** argv ){ cerr << "connected to: " << _host << endl; } else { + if ( _params.count( "directoryperdb" ) ) { + directoryperdb = true; + } Client::initThread("tools"); _conn = new DBDirectClient(); _host = "DIRECT"; |