diff options
Diffstat (limited to 'db/query.cpp')
| -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 ) { |
