summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2011-02-28 15:15:45 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-01 10:57:08 -0500
commit09ed6d9098b991ee36ea3cb3ee5232f3e50b84ab (patch)
tree3ee144e497914d124a89cb13bc108759fa4bb2c9
parentb2963ff3b293dc5eaf9acaf6de5b4fc835beb6b2 (diff)
downloadmongo-09ed6d9098b991ee36ea3cb3ee5232f3e50b84ab.tar.gz
SERVER-2631 missing commitIfNeeded call - 180?
-rw-r--r--db/btree.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/btree.cpp b/db/btree.cpp
index d3465dadc61..becc8cb6b91 100644
--- a/db/btree.cpp
+++ b/db/btree.cpp
@@ -1790,6 +1790,12 @@ namespace mongo {
DiskLoc xloc = loc;
while( !xloc.isNull() ) {
+ RARELY {
+ getDur().commitIfNeeded();
+ b = cur.btreemod();
+ up = upLoc.btreemod();
+ }
+
BtreeBucket *x = xloc.btreemod();
BSONObj k;
DiskLoc r;