fix: update metacache entry only once (#16072)

This commit is contained in:
Krishnan Parthasarathi 2022-11-16 11:25:00 -08:00 committed by GitHub
parent 853c4de75a
commit 8441a3bf5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)