mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
Merge pull request #2307 from tendermint/master
libs/autofile: bring back loops (#2261)
This commit is contained in:
commit
03afad3218
@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# 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
|
## 0.23.0
|
||||||
|
|
||||||
*August 5th, 2018*
|
*August 5th, 2018*
|
||||||
|
@ -67,11 +67,13 @@ func (af *AutoFile) Close() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (af *AutoFile) processTicks() {
|
func (af *AutoFile) processTicks() {
|
||||||
select {
|
for {
|
||||||
case <-af.ticker.C:
|
select {
|
||||||
af.closeFile()
|
case <-af.ticker.C:
|
||||||
case <-af.tickerStopped:
|
af.closeFile()
|
||||||
return
|
case <-af.tickerStopped:
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,12 +199,14 @@ func (g *Group) Flush() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *Group) processTicks() {
|
func (g *Group) processTicks() {
|
||||||
select {
|
for {
|
||||||
case <-g.ticker.C:
|
select {
|
||||||
g.checkHeadSizeLimit()
|
case <-g.ticker.C:
|
||||||
g.checkTotalSizeLimit()
|
g.checkHeadSizeLimit()
|
||||||
case <-g.Quit():
|
g.checkTotalSizeLimit()
|
||||||
return
|
case <-g.Quit():
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@ package version
|
|||||||
const (
|
const (
|
||||||
Maj = "0"
|
Maj = "0"
|
||||||
Min = "23"
|
Min = "23"
|
||||||
Fix = "0"
|
Fix = "1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// Version is the current version of Tendermint
|
// Version is the current version of Tendermint
|
||||||
// Must be a string because scripts like dist.sh read this file.
|
// 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 is the current HEAD set using ldflags.
|
||||||
GitCommit string
|
GitCommit string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user