summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-06-19 18:12:10 -0400
committerRandolph Tan <randolph@10gen.com>2014-06-30 13:21:53 -0400
commit09d2bf2a43cbf6e7ac10d4dc89934528001d0b69 (patch)
tree62e86cf1fbb35106407e8251693e5052b6920fb1 /src/mongo/client/connpool.h
parent5d4b3fe40cfe91857850d89a7a99a07d41b1d48d (diff)
downloadmongo-09d2bf2a43cbf6e7ac10d4dc89934528001d0b69.tar.gz
SERVER-9788 mongos does not respect secondary preferred after temporarily unavailable secondary
Diffstat (limited to 'src/mongo/client/connpool.h')
-rw-r--r--src/mongo/client/connpool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/client/connpool.h b/src/mongo/client/connpool.h
index e7213abaa48..f1b7eaf194e 100644
--- a/src/mongo/client/connpool.h
+++ b/src/mongo/client/connpool.h
@@ -145,6 +145,7 @@ namespace mongo {
virtual ~DBConnectionHook() {}
virtual void onCreate( DBClientBase * conn ) {}
virtual void onHandedOut( DBClientBase * conn ) {}
+ virtual void onRelease(DBClientBase* conn) {}
virtual void onDestroy( DBClientBase * conn ) {}
};
@@ -192,6 +193,7 @@ namespace mongo {
void onCreate( DBClientBase * conn );
void onHandedOut( DBClientBase * conn );
void onDestroy( DBClientBase * conn );
+ void onRelease(DBClientBase* conn);
void flush();