masterConn in DBClientPaired
Conflicts: client/dbclient.h
This commit is contained in:
parent
3ef75220fc
commit
eb9efb78c7
@ -932,6 +932,10 @@ namespace mongo {
|
||||
return master == Left ? left : right;
|
||||
}
|
||||
|
||||
DBClientConnection& DBClientPaired::masterConn(){
|
||||
return checkMaster();
|
||||
}
|
||||
|
||||
DBClientConnection& DBClientPaired::slaveConn(){
|
||||
DBClientConnection& m = checkMaster();
|
||||
assert( ! m.isFailed() );
|
||||
|
||||
@ -909,6 +909,7 @@ namespace mongo {
|
||||
return left.getServerAddress() + "," + right.getServerAddress();
|
||||
}
|
||||
|
||||
DBClientConnection& masterConn();
|
||||
DBClientConnection& slaveConn();
|
||||
|
||||
/* TODO - not yet implemented. mongos may need these. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user