mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
remove empty dbpath command MINOR
This commit is contained in:
parent
28005f1d15
commit
7e0f926ab9
@ -504,15 +504,6 @@ BSONObj StartMongoProgram( const BSONObj &a ) {
|
||||
return undefined_;
|
||||
}
|
||||
|
||||
BSONObj EmptyDbpath( const BSONObj &a ) {
|
||||
assert( a.nFields() == 1 );
|
||||
string path = a.firstElement().valuestrsafe();
|
||||
assert( !path.empty() );
|
||||
if ( boost::filesystem::exists( path ) )
|
||||
boost::filesystem::remove_all( path );
|
||||
return undefined_;
|
||||
}
|
||||
|
||||
BSONObj ResetDbpath( const BSONObj &a ) {
|
||||
assert( a.nFields() == 1 );
|
||||
string path = a.firstElement().valuestrsafe();
|
||||
@ -662,7 +653,6 @@ void installShellUtils( mongo::Scope &scope, v8::Handle<v8::ObjectTemplate>& glo
|
||||
scope.injectNative( "stopMongod", StopMongoProgram );
|
||||
scope.injectNative( "stopMongoProgram", StopMongoProgram );
|
||||
scope.injectNative( "resetDbpath", ResetDbpath );
|
||||
scope.injectNative( "emptyDbpath", EmptyDbpath );
|
||||
scope.injectNative( "rawMongoProgramOutput", RawMongoProgramOutput );
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user