diff options
author | Mathias Stearn <mathias@10gen.com> | 2012-02-28 17:43:19 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2012-02-28 17:43:19 -0500 |
commit | b0da47b1bd4bf3b9186be57c4c1df4be5d828716 (patch) | |
tree | 6a524e178aaae5ed4a09f0235eaef33097f8a609 /src/mongo/db/dur_journal.cpp | |
parent | 9cf0cc2233478ff41b8d32949fa58108071b0af2 (diff) | |
download | mongo-b0da47b1bd4bf3b9186be57c4c1df4be5d828716.tar.gz |
Fix journal compression ratio reporting SERVER-5135
Diffstat (limited to 'src/mongo/db/dur_journal.cpp')
-rw-r--r-- | src/mongo/db/dur_journal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dur_journal.cpp b/src/mongo/db/dur_journal.cpp index bfc36ce8275..f8f7b90e651 100644 --- a/src/mongo/db/dur_journal.cpp +++ b/src/mongo/db/dur_journal.cpp @@ -727,7 +727,7 @@ namespace mongo { // must already be open -- so that _curFileId is correct for previous buffer building assert( _curLogFile ); - stats.curr->_uncompressedBytes += b.len(); + stats.curr->_uncompressedBytes += uncompressed.len(); unsigned w = b.len(); _written += w; assert( w <= L ); |