From cbe2d992e9cd1ea66af9fa91df006106775d3073 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Tue, 23 Aug 2011 08:47:17 +0200 Subject: Imported Upstream version 1.8.3 --- client/dbclient_rs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/dbclient_rs.h') 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 checkSlaveQueryResult( auto_ptr result ); + DBClientConnection * checkMaster(); DBClientConnection * checkSlave(); -- cgit v1.2.3