summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-22 21:02:44 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-22 21:02:44 -0400
commit3758c71ab8a08a8d33fdbe7b7199d776f4c5c644 (patch)
tree33b6ad8976f87257978d794846370d128bb8c042 /client
parentfdcc7e9ba6a28f67656680e384f3c74e9ca64592 (diff)
downloadmongo-3758c71ab8a08a8d33fdbe7b7199d776f4c5c644.tar.gz
implement remove() for SCC
Diffstat (limited to 'client')
-rw-r--r--client/syncclusterconnection.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/syncclusterconnection.cpp b/client/syncclusterconnection.cpp
index 5dcb0f29487..31ee8539dbd 100644
--- a/client/syncclusterconnection.cpp
+++ b/client/syncclusterconnection.cpp
@@ -229,7 +229,15 @@ namespace mongo {
}
void SyncClusterConnection::remove( const string &ns , Query query, bool justOne ){
- assert(0);
+ string errmsg;
+ if ( ! prepare( errmsg ) )
+ throw UserException( 8020 , (string)"SyncClusterConnection::remove prepare failed: " + errmsg );
+
+ for ( size_t i=0; i<_conns.size(); i++ ){
+ _conns[i]->remove( ns , query , justOne );
+ }
+
+ _checkLast();
}
void SyncClusterConnection::update( const string &ns , Query query , BSONObj obj , bool upsert , bool multi ){