Skip to content

Commit

Permalink
Merge pull request #2061 from prezi/upstream
Browse files Browse the repository at this point in the history
Fix for fail to remove state where file was deleted and clean_removed was set.
  • Loading branch information
ruflin authored Jul 20, 2016
2 parents 99137dc + b41276c commit b78cb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filebeat/prospector/prospector_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (p *ProspectorLog) Run() {
p.scan()

// It is important that a first scan is run before cleanup to make sure all new states are read first
if p.config.CleanInactive > 0 {
if p.config.CleanInactive > 0 || p.config.CleanRemoved {
p.Prospector.states.Cleanup()
logp.Debug("prospector", "Prospector states cleaned up.")
}
Expand Down

0 comments on commit b78cb9c

Please sign in to comment.