From d949e7ec25642b7fee19afe09415c3c30b94ba21 Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Mon, 10 Jun 2024 12:48:49 +0300 Subject: [PATCH] Don't run retainer if check interval is disabled Still allow manual enforcing of retention. --- replica.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replica.go b/replica.go index 9ed2fd58..69bbcf55 100644 --- a/replica.go +++ b/replica.go @@ -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 }