Merge pull request #269 from Gouthamve/fix-reloads

Fix extra reloads.
This commit is contained in:
Goutham Veeramachaneni 2018-01-26 20:24:38 +05:30 committed by GitHub
commit 44dd5e1202
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
db.go
View file

@ -299,7 +299,11 @@ func (db *DB) retentionCutoff() (bool, error) {
}
// This will close the dirs and then delete the dirs.
return len(dirs) > 0, db.reload(dirs...)
if len(dirs) > 0 {
return true, db.reload(dirs...)
}
return false, nil
}
// Appender opens a new appender against the database.