Skip to content

Commit

Permalink
MB-24645 - Improving the compaction related stats
Browse files Browse the repository at this point in the history
Switching from an ever-increasing compaction stats to a
compaction cycle specific stats by reseting the stats
after every compaction
Moving back to ever increasing stat and some clean up

Change-Id: Iea58e399e9bcc4890a4f98fad10bbb082c20431a
Reviewed-on: http://review.couchbase.org/80494
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Sreekanth Sivasankaran
  • Loading branch information
sreekanth-cb authored and Sreekanth Sivasankaran committed Jul 13, 2017
1 parent fa5f418 commit 8ea508f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file.go
Expand Up @@ -207,9 +207,9 @@ func newBufferedSectionWriter(w io.WriterAt, begPos, maxBytes int64,
if ok {
buf, pos = req.buf, req.pos
if len(buf) > 0 {
_, err = w.WriteAt(buf, pos)
nBytes, err := w.WriteAt(buf, pos)
if err == nil && s != nil {
s.reportBytesWritten(uint64(len(buf)))
s.reportBytesWritten(uint64(nBytes))
}
}
}
Expand Down

0 comments on commit 8ea508f

Please sign in to comment.