summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-03-30 01:57:42 -0400
committerEliot Horowitz <eliot@10gen.com>2011-03-30 01:57:42 -0400
commit843747d201d13a98ac97e28b5292267645ec515b (patch)
tree081c3aec2af5c2d4b93af2e51e030aae467c9cb9
parenta75fddc244be17b3db962d413d1566c03d74dd67 (diff)
downloadmongo-843747d201d13a98ac97e28b5292267645ec515b.tar.gz
Missing commitIfNeeded in background index build SERVER-2853
-rw-r--r--db/pdfile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index 313e1e8fa80..50276641358 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -1254,6 +1254,8 @@ namespace mongo {
n++;
progress.hit();
+ getDur().commitIfNeeded();
+
if ( n % 128 == 0 && !cc->yield() ) {
cc.release();
uasserted(12584, "cursor gone during bg index");