get rid of fork()

This commit is contained in:
Aaron
2009-05-15 16:32:31 -04:00
parent a5969ca86b
commit d1b49ff9bd
6 changed files with 8 additions and 145 deletions

View File

@@ -654,12 +654,12 @@ namespace mongo {
}
void externalSetup( bool master ){
initMongoJS( this , _context , _global , false, master );
void externalSetup(){
initMongoJS( this , _context , _global , false );
}
void localConnect( const char * dbName ){
initMongoJS( this , _context , _global , true, true );
initMongoJS( this , _context , _global , true );
exec( "_mongo = new Mongo();" );
exec( ((string)"db = _mongo.getDB( \"" + dbName + "\" ); ").c_str() );