Skip to content

Commit

Permalink
fix(storage): ensure WAL size correctly set on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
e-dard committed Jul 5, 2019
1 parent a61e88a commit 8484f2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsdb/engine/tsm1/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ func (l *WAL) Open() error {
}
l.currentSegmentWriter = NewWALSegmentWriter(fd)

// Reset the current segment size stat
// Set the correct size on the segment writer
atomic.StoreInt64(&l.stats.CurrentBytes, stat.Size())
l.currentSegmentWriter.size = int(stat.Size())
}
}

Expand Down

0 comments on commit 8484f2b

Please sign in to comment.