From 3b9581e84e19723087b31b79674801b6c06ae533 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Wed, 18 Aug 2010 09:23:15 +0200 Subject: Imported Upstream version 1.6.1 --- client/syncclusterconnection.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'client/syncclusterconnection.cpp') diff --git a/client/syncclusterconnection.cpp b/client/syncclusterconnection.cpp index 5324b6c..99f6067 100644 --- a/client/syncclusterconnection.cpp +++ b/client/syncclusterconnection.cpp @@ -369,4 +369,16 @@ namespace mongo { // should never need to do this assert(0); } + + bool SyncClusterConnection::isMember( const DBConnector * conn ) const { + if ( conn == this ) + return true; + + for ( unsigned i=0; i<_conns.size(); i++ ) + if ( _conns[i]->isMember( conn ) ) + return true; + + return false; + } + } -- cgit v1.2.3