0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

use file allocator to allow writes in Tools MINOR

This commit is contained in:
Aaron 2009-05-20 12:15:26 -04:00
parent 85c396b10c
commit 11ae38a6ff

View File

@ -6,6 +6,8 @@
#include <boost/filesystem/operations.hpp>
#include "util/file_allocator.h"
using namespace std;
using namespace mongo;
@ -64,6 +66,9 @@ int mongo::Tool::main( int argc , char ** argv ){
static string myDbpath = getParam( "dbpath" );
mongo::dbpath = myDbpath.c_str();
mongo::acquirePathLock();
#if !defined(_WIN32)
theFileAllocator().start();
#endif
}
if ( _params.count( "db" ) )