diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-07-21 14:12:32 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-07-21 14:12:32 -0400 |
commit | 6048738ac9fc63eeff318ab10f7fcf40758e555b (patch) | |
tree | e8b0114ee5dfa7188b10bcbb17888aa0062ca274 /s/strategy.cpp | |
parent | db31e7bf5060b5c4abcb0c34a52aff83146816b3 (diff) | |
download | mongo-6048738ac9fc63eeff318ab10f7fcf40758e555b.tar.gz |
raw methods for talking to db
fix sync cluster connection getMore
Diffstat (limited to 's/strategy.cpp')
-rw-r--r-- | s/strategy.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
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<DBClientConnection&>(_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 ){ |