Skip to content

Commit

Permalink
Update sample config with topic truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep committed Apr 14, 2015
1 parent 8dd5689 commit f6763ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions etc/config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ enabled = false
enabled = true
# Where the Raft logs are stored. The user running InfluxDB will need read/write access.
dir = "/var/opt/influxdb/raft"
truncation-interval = "10m"
max-topic-size = 1073741824
max-segment-size = 10485760

# Data node configuration. Data nodes are where the time-series data, in the form of
# shards, is stored.
Expand Down
3 changes: 1 addition & 2 deletions messaging/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,7 @@ func (t *Topic) Truncate(maxSize int64) (int64, error) {
return 0, err
}

var totalSize int64
totalSize, err = segments.Size()
totalSize, err := segments.Size()
if err != nil {
return 0, err
}
Expand Down

0 comments on commit f6763ef

Please sign in to comment.