Revert "Revert "SERVER-305 record uri on connect""

This reverts commit 149248b4eb.
This commit is contained in:
Aaron
2010-02-22 12:08:54 -08:00
parent 149248b4eb
commit cd1dfe32b0
7 changed files with 22 additions and 6 deletions

View File

@@ -156,7 +156,7 @@ namespace mongo {
if ( ! conn->connect( host , errmsg ) ){
return v8::ThrowException( v8::String::New( "couldn't connect" ) );
}
ScriptEngine::runConnectCallback( *conn );
// NOTE I don't believe the conn object will ever be freed.
args.This()->Set( CONN_STRING , External::New( conn ) );
args.This()->Set( v8::String::New( "slaveOk" ) , Boolean::New( false ) );