diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-03-03 02:39:12 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-03-03 21:56:38 -0500 |
commit | f53b65645fe61b75120b1daba2d070d69071b553 (patch) | |
tree | e0ade24b8a1793285fdb484a6ea36182852901d5 /db | |
parent | bbf18b270c52fe575b224ad5f62336b410f9b623 (diff) | |
download | mongo-f53b65645fe61b75120b1daba2d070d69071b553.tar.gz |
yield on getMore SERVER-2450
Diffstat (limited to 'db')
-rw-r--r-- | db/query.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/query.cpp b/db/query.cpp index 728b342b3ed..31674292f02 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -380,6 +380,9 @@ namespace mongo { } } c->advance(); + + if ( ! cc->yieldSometimes() ) + break; } if ( cc ) { |