diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-22 21:02:44 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-22 21:02:44 -0400 |
commit | 3758c71ab8a08a8d33fdbe7b7199d776f4c5c644 (patch) | |
tree | 33b6ad8976f87257978d794846370d128bb8c042 /client | |
parent | fdcc7e9ba6a28f67656680e384f3c74e9ca64592 (diff) | |
download | mongo-3758c71ab8a08a8d33fdbe7b7199d776f4c5c644.tar.gz |
implement remove() for SCC
Diffstat (limited to 'client')
-rw-r--r-- | client/syncclusterconnection.cpp | 10 |
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 ){ |