libs/autofile: bring back loops (#2261)
* libs/autofile: bring back loops * changelog, version
This commit is contained in:
parent
013b9cef64
commit
9e940b95ad
|
@ -1,5 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## 0.23.1
|
||||
|
||||
*August 22nd, 2018*
|
||||
|
||||
BUG FIXES:
|
||||
- [libs/autofile] \#2261 Fix log rotation so it actually happens.
|
||||
- Fixes issues with consensus WAL growing unbounded ala \#2259
|
||||
|
||||
## 0.23.0
|
||||
|
||||
*August 5th, 2018*
|
||||
|
|
|
@ -67,12 +67,14 @@ func (af *AutoFile) Close() error {
|
|||
}
|
||||
|
||||
func (af *AutoFile) processTicks() {
|
||||
for {
|
||||
select {
|
||||
case <-af.ticker.C:
|
||||
af.closeFile()
|
||||
case <-af.tickerStopped:
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (af *AutoFile) closeFile() (err error) {
|
||||
|
|
|
@ -199,6 +199,7 @@ func (g *Group) Flush() error {
|
|||
}
|
||||
|
||||
func (g *Group) processTicks() {
|
||||
for {
|
||||
select {
|
||||
case <-g.ticker.C:
|
||||
g.checkHeadSizeLimit()
|
||||
|
@ -206,6 +207,7 @@ func (g *Group) processTicks() {
|
|||
case <-g.Quit():
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NOTE: this function is called manually in tests.
|
||||
|
|
|
@ -4,13 +4,13 @@ package version
|
|||
const (
|
||||
Maj = "0"
|
||||
Min = "23"
|
||||
Fix = "0"
|
||||
Fix = "1"
|
||||
)
|
||||
|
||||
var (
|
||||
// Version is the current version of Tendermint
|
||||
// Must be a string because scripts like dist.sh read this file.
|
||||
Version = "0.23.0"
|
||||
Version = "0.23.1"
|
||||
|
||||
// GitCommit is the current HEAD set using ldflags.
|
||||
GitCommit string
|
||||
|
|
Loading…
Reference in New Issue