diff options
author | dwight <dwight@10gen.com> | 2011-01-12 10:05:49 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-01-12 10:05:49 -0500 |
commit | a4c8d5ccaf43bd5d6f72fae0a0855c56cb5af713 (patch) | |
tree | 685907cc5d8fbf404068241d4b1e027cd3faef53 /db/dur.cpp | |
parent | 8a37c45ed7e8407517a7f0b6b78b2de8815a859e (diff) | |
download | mongo-a4c8d5ccaf43bd5d6f72fae0a0855c56cb5af713.tar.gz |
dur assert if too much is written in one commit group
Diffstat (limited to 'db/dur.cpp')
-rw-r--r-- | db/dur.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/db/dur.cpp b/db/dur.cpp index 83af786db4b..eefc0f56978 100644 --- a/db/dur.cpp +++ b/db/dur.cpp @@ -213,10 +213,8 @@ namespace mongo { return p; } - const unsigned UncommittedBytesLimit = 100 * 1024 * 1024; - void DurableImpl::commitIfNeeded() { - if (commitJob.bytes() >UncommittedBytesLimit) // should this also fire if CmdLine::DurAlwaysCommit? + if (commitJob.bytes() > UncommittedBytesLimit) // should this also fire if CmdLine::DurAlwaysCommit? groupCommit(); } |