We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef7522 commit eb9efb7Copy full SHA for eb9efb7
client/dbclient.cpp
@@ -932,6 +932,10 @@ namespace mongo {
932
return master == Left ? left : right;
933
}
934
935
+ DBClientConnection& DBClientPaired::masterConn(){
936
+ return checkMaster();
937
+ }
938
+
939
DBClientConnection& DBClientPaired::slaveConn(){
940
DBClientConnection& m = checkMaster();
941
assert( ! m.isFailed() );
client/dbclient.h
@@ -909,6 +909,7 @@ namespace mongo {
909
return left.getServerAddress() + "," + right.getServerAddress();
910
911
912
+ DBClientConnection& masterConn();
913
DBClientConnection& slaveConn();
914
915
/* TODO - not yet implemented. mongos may need these. */
0 commit comments