From ba17a00dd95d6a9d2baf5f1dea2a0fab3ecb8669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mattrat?= Date: Wed, 24 Apr 2024 21:17:05 +0200 Subject: [PATCH] align prune with disk usage command behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FĂ©lix Mattrat --- cache/manager.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cache/manager.go b/cache/manager.go index c09ada3b9919..95dfefa6d274 100644 --- a/cache/manager.go +++ b/cache/manager.go @@ -1109,10 +1109,11 @@ func (cm *cacheManager) prune(ctx context.Context, ch chan client.UsageInfo, opt } c := &client.UsageInfo{ - ID: cr.ID(), - Mutable: cr.mutable, - RecordType: recordType, - Shared: shared, + ID: cr.ID(), + Mutable: cr.mutable, + RecordType: recordType, + Shared: shared, + Description: cr.GetDescription(), } usageCount, lastUsedAt := cr.getLastUsed()