diff options
author | Robert Guo <robertguo@me.com> | 2016-05-26 17:04:21 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-06-07 14:29:01 -0400 |
commit | 3fd250ba74e52052ed92a442ff089c8e6b80a8b4 (patch) | |
tree | 5618242a603819567fca967bf225e33a72fff38e | |
parent | 75d92ec7ef9cceda65fe502fc58f0a654d06fbd0 (diff) | |
download | mongo-3fd250ba74e52052ed92a442ff089c8e6b80a8b4.tar.gz |
SERVER-24301 increase mmapv1 max journal size on debug builds
(cherry picked from commit 94bb6ab212c5f0baf67e7aff167fbf5c54db0637)
-rw-r--r-- | src/mongo/db/storage/mmap_v1/aligned_builder.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/storage/mmap_v1/aligned_builder.cpp b/src/mongo/db/storage/mmap_v1/aligned_builder.cpp index 911be67031a..2af4891fe60 100644 --- a/src/mongo/db/storage/mmap_v1/aligned_builder.cpp +++ b/src/mongo/db/storage/mmap_v1/aligned_builder.cpp @@ -100,18 +100,20 @@ void NOINLINE_DECL AlignedBuilder::growReallocate(unsigned oldLen) { const unsigned oldSize = _p._size; // Warn for unexpectedly large buffer - wassert(_len <= kWarnSize); + if (_len > kWarnSize) { + warning() << "large amount of uncommitted data (" << _len << " bytes)"; + } // Check validity of requested size invariant(_len > oldSize); if (_len > kMaxSize) { - log() << "error writing journal: too much uncommitted data (" << _len << " bytes)"; - log() << "shutting down immediately to avoid corruption"; + error() << "error writing journal: too much uncommitted data (" << _len << " bytes)"; + error() << "shutting down immediately to avoid corruption"; fassert(28614, _len <= kMaxSize); } // Use smaller maximum for debug builds, as we should never be close the the maximum - dassert(_len <= 512 * MB); + dassert(_len <= 1000 * MB); // Compute newSize by doubling the existing maximum size until the maximum is reached invariant(oldSize > 0); |