summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/dur.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/dur.h')
-rw-r--r--src/mongo/db/storage/mmap_v1/dur.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/storage/mmap_v1/dur.h b/src/mongo/db/storage/mmap_v1/dur.h
index 06b38255c25..b505de833f6 100644
--- a/src/mongo/db/storage/mmap_v1/dur.h
+++ b/src/mongo/db/storage/mmap_v1/dur.h
@@ -91,8 +91,9 @@ public:
/** Commit if enough bytes have been modified. Current threshold is 50MB
The idea is that long running write operations that don't yield
- (like creating an index) can call this whenever the db is in a sane state and it will
- prevent commits from growing too large.
+ (like creating an index or update with $atomic) can call this
+ whenever the db is in a sane state and it will prevent commits
+ from growing too large.
@return true if commited
*/
virtual bool commitIfNeeded() = 0;