Don't delete files if retention duration is 0

pull/5805/head
Fabian Reinartz 8 years ago
parent 9c76624df2
commit 987a90d149

@ -292,6 +292,9 @@ func (db *DB) compact(i, j int) error {
}
func (db *DB) retentionCutoff() error {
if db.opts.RetentionDuration == 0 {
return nil
}
h := db.heads[len(db.heads)-1]
t := h.meta.MinTime - int64(db.opts.RetentionDuration)

Loading…
Cancel
Save