summaryrefslogtreecommitdiff
path: root/client/syncclusterconnection.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
commit3b9581e84e19723087b31b79674801b6c06ae533 (patch)
tree5568dbd7199b1ce64ace1cec26b590c1431e872d /client/syncclusterconnection.cpp
parentd7ec8115ec4b160ed74c1a8a06a1c171d76370ac (diff)
downloadmongodb-3b9581e84e19723087b31b79674801b6c06ae533.tar.gz
Imported Upstream version 1.6.1
Diffstat (limited to 'client/syncclusterconnection.cpp')
-rw-r--r--client/syncclusterconnection.cpp12
1 files changed, 12 insertions, 0 deletions
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;
+ }
+
}