mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
Merge branch 'master' of github.com:mongodb/mongo
This commit is contained in:
commit
94b37bb60f
@ -697,10 +697,11 @@ namespace mongo {
|
||||
return;
|
||||
}
|
||||
BSONObj info;
|
||||
uassert( 13010, "whatsmyuri failed", c.runCommand( "admin", BSON( "whatsmyuri" << 1 ), info ) );
|
||||
// There's no way to explicitly disconnect a DBClientConnection, but we might allocate
|
||||
// a new uri on automatic reconnect. So just store one uri per connection.
|
||||
_allMyUris[ &c ] = info[ "you" ].str();
|
||||
if ( c.runCommand( "admin", BSON( "whatsmyuri" << 1 ), info ) ) {
|
||||
// There's no way to explicitly disconnect a DBClientConnection, but we might allocate
|
||||
// a new uri on automatic reconnect. So just store one uri per connection.
|
||||
_allMyUris[ &c ] = info[ "you" ].str();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user