diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-03-03 03:12:55 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-03-03 21:56:42 -0500 |
commit | b1eb83e61c6358cc9144757f4e9c364cd9c6d1bf (patch) | |
tree | 86ff07b5f991243617f56454b1f760ca9b14b691 /db | |
parent | f53b65645fe61b75120b1daba2d070d69071b553 (diff) | |
download | mongo-b1eb83e61c6358cc9144757f4e9c364cd9c6d1bf.tar.gz |
fix yield on getMore SERVER-2450
Diffstat (limited to 'db')
-rw-r--r-- | db/query.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/query.cpp b/db/query.cpp index 31674292f02..7d006aba910 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -381,8 +381,10 @@ namespace mongo { } c->advance(); - if ( ! cc->yieldSometimes() ) + if ( ! cc->yieldSometimes() ) { + cc = 0; break; + } } if ( cc ) { |