Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

Commit 44dd5e1

Browse files
authored
Merge pull request #269 from Gouthamve/fix-reloads
Fix extra reloads.
2 parents ad0fdaf + b7bea04 commit 44dd5e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

db.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ func (db *DB) retentionCutoff() (bool, error) {
299299
}
300300

301301
// This will close the dirs and then delete the dirs.
302-
return len(dirs) > 0, db.reload(dirs...)
302+
if len(dirs) > 0 {
303+
return true, db.reload(dirs...)
304+
}
305+
306+
return false, nil
303307
}
304308

305309
// Appender opens a new appender against the database.

0 commit comments

Comments
 (0)