From 533c9d4fe391342ecd3cd158543c2fb72ca46cdc Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 26 Oct 2022 20:43:54 +0100 Subject: [PATCH] fix: lockName to disallow parallel same erasure set healing (#15951) --- cmd/background-newdisks-heal-ops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/background-newdisks-heal-ops.go b/cmd/background-newdisks-heal-ops.go index fd3d11691..50d85eb1c 100644 --- a/cmd/background-newdisks-heal-ops.go +++ b/cmd/background-newdisks-heal-ops.go @@ -310,7 +310,7 @@ func healFreshDisk(ctx context.Context, z *erasureServerPools, endpoint Endpoint } // Prevent parallel erasure set healing - locker := z.NewNSLock(minioMetaBucket, fmt.Sprintf("new-drive-healing/%s/%d/%d", endpoint, poolIdx, setIdx)) + locker := z.NewNSLock(minioMetaBucket, fmt.Sprintf("new-drive-healing/%d/%d", poolIdx, setIdx)) lkctx, err := locker.GetLock(ctx, newDiskHealingTimeout) if err != nil { return err