Skip to content

Commit

Permalink
Don't run retainer if check interval is disabled
Browse files Browse the repository at this point in the history
Still allow manual enforcing of retention.
  • Loading branch information
hifi committed Jun 10, 2024
1 parent 2241e45 commit d949e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (r *Replica) monitor(ctx context.Context) {
// retainer runs in a separate goroutine and handles retention.
func (r *Replica) retainer(ctx context.Context) {
// Disable retention enforcement if retention period is non-positive.
if r.Retention <= 0 {
if r.RetentionCheckInterval <= 0 {
return
}

Expand Down

0 comments on commit d949e7e

Please sign in to comment.