From 6048738ac9fc63eeff318ab10f7fcf40758e555b Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 21 Jul 2010 14:12:32 -0400 Subject: raw methods for talking to db fix sync cluster connection getMore --- s/strategy.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 's/strategy.cpp') diff --git a/s/strategy.cpp b/s/strategy.cpp index 3a73e5f8dd5..8ce27346862 100644 --- a/s/strategy.cpp +++ b/s/strategy.cpp @@ -28,14 +28,9 @@ namespace mongo { // ----- Strategy ------ void Strategy::doWrite( int op , Request& r , const Shard& shard ){ - ShardConnection dbcon( shard , r.getns() ); - DBClientBase &_c = dbcon.conn(); - - /* TODO FIX - do not case and call DBClientBase::say() */ - DBClientConnection&c = dynamic_cast(_c); - c.port().say( r.m() ); - - dbcon.done(); + ShardConnection conn( shard , r.getns() ); + conn->say( r.m() ); + conn.done(); } void Strategy::doQuery( Request& r , const Shard& shard ){ -- cgit v1.2.1