From 8441a3bf5fc6683c9ff178d71dbc642221ca6478 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Wed, 16 Nov 2022 11:25:00 -0800 Subject: [PATCH] fix: update metacache entry only once (#16072) --- cmd/metacache-server-pool.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/metacache-server-pool.go b/cmd/metacache-server-pool.go index 5ed54935b..2f4d4320c 100644 --- a/cmd/metacache-server-pool.go +++ b/cmd/metacache-server-pool.go @@ -155,9 +155,6 @@ func (z *erasureServerPools) listPath(ctx context.Context, o *listPathOptions) ( return case <-t.C: meta.lastHandout = time.Now() - if rpc == nil { - meta, _ = localMetacacheMgr.updateCacheEntry(meta) - } meta, _ = rpc.UpdateMetacacheListing(ctx, meta) } }(*c)