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:
parent
85c396b10c
commit
11ae38a6ff
@ -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" ) )
|
||||
|
Loading…
Reference in New Issue
Block a user