summaryrefslogtreecommitdiff
path: root/db/btree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree.cpp')
-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;