summaryrefslogtreecommitdiff
path: root/db/cap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/cap.cpp')
-rw-r--r--db/cap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/cap.cpp b/db/cap.cpp
index 198bd54..260b311 100644
--- a/db/cap.cpp
+++ b/db/cap.cpp
@@ -319,6 +319,7 @@ namespace mongo {
// 'end' has been found and removed, so break.
break;
}
+ getDur().commitIfNeeded();
// 'curr' will point to the newest document in the collection.
DiskLoc curr = theCapExtent()->lastRecord;
assert( !curr.isNull() );