diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-08-23 08:47:18 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-08-23 08:47:18 +0200 |
commit | a3bbc293c62e68425bdf6f8e983e2bfaa97ab06e (patch) | |
tree | 835c5b2f35a8ad1b46a49680524dfe884cae1d1b /client/dbclient_rs.h | |
parent | bf8d466302e046d534b67751d012669f43bf672a (diff) | |
parent | cbe2d992e9cd1ea66af9fa91df006106775d3073 (diff) | |
download | mongodb-a3bbc293c62e68425bdf6f8e983e2bfaa97ab06e.tar.gz |
Merge commit 'upstream/1.8.3'
Diffstat (limited to 'client/dbclient_rs.h')
-rw-r--r-- | client/dbclient_rs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/dbclient_rs.h b/client/dbclient_rs.h index e942d7b..548b46a 100644 --- a/client/dbclient_rs.h +++ b/client/dbclient_rs.h @@ -215,6 +215,9 @@ namespace mongo { /* this is the callback from our underlying connections to notify us that we got a "not master" error. */ void isntMaster(); + /* this is used to indicate we got a "not master or secondary" error from a secondary. + */ + void isntSecondary(); // ----- status ------ @@ -240,6 +243,9 @@ namespace mongo { private: + // Used to simplify slave-handling logic on errors + auto_ptr<DBClientCursor> checkSlaveQueryResult( auto_ptr<DBClientCursor> result ); + DBClientConnection * checkMaster(); DBClientConnection * checkSlave(); |