diff options
author | Antonin Kral <a.kral@bobek.cz> | 2010-12-10 13:05:34 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2010-12-10 13:05:34 +0100 |
commit | ed4a804c027562e1bf6a0f45dae7326198c29f8e (patch) | |
tree | 9d04736132d5421497a80619e30d4c2e03e76728 /db/dbhelpers.cpp | |
parent | e598e7ada36302f35a0da8ae0c63c34b51b6a720 (diff) | |
download | mongodb-ed4a804c027562e1bf6a0f45dae7326198c29f8e.tar.gz |
Imported Upstream version 1.6.5
Diffstat (limited to 'db/dbhelpers.cpp')
-rw-r--r-- | db/dbhelpers.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/dbhelpers.cpp b/db/dbhelpers.cpp index 124deb8..205787e 100644 --- a/db/dbhelpers.cpp +++ b/db/dbhelpers.cpp @@ -301,6 +301,10 @@ namespace mongo { c->checkLocation(); + if ( yield && ! cc->yieldSometimes() ){ + // cursor got finished by someone else, so we're done + break; + } } return num; |