summaryrefslogtreecommitdiff
path: root/s/strategy_shard.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-02-25 00:40:38 -0500
committerEliot Horowitz <eliot@10gen.com>2009-02-25 00:40:38 -0500
commitdbbbdf47877886a65c5428f1a9f7578129687076 (patch)
tree5499b353252f8e473cd85e38b9dfcd46cc8efdfc /s/strategy_shard.cpp
parent585c669cbf21caae51496f83fe4c6aa858e500b4 (diff)
downloadmongo-dbbbdf47877886a65c5428f1a9f7578129687076.tar.gz
some limit fixes, getMore checkpoint
Diffstat (limited to 's/strategy_shard.cpp')
-rw-r--r--s/strategy_shard.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/s/strategy_shard.cpp b/s/strategy_shard.cpp
index b90d2b50da0..313ea6ab42e 100644
--- a/s/strategy_shard.cpp
+++ b/s/strategy_shard.cpp
@@ -221,7 +221,12 @@ namespace mongo {
}
assert( cursor );
- cursor->sendNextBatch( r );
+ if ( ! cursor->sendNextBatch( r ) ){
+ delete( cursor );
+ return;
+ }
+
+ // TODO: store cursor
}
virtual void getMore( Request& r ){