From 5ea03ecb43827d2a23127beaf4e64803838b7fe9 Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Sun, 9 Jun 2024 22:07:36 +0530 Subject: [PATCH] relax repair logic --- zboxcore/sdk/rollback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zboxcore/sdk/rollback.go b/zboxcore/sdk/rollback.go index e68cc20bf..1a1c48d3c 100644 --- a/zboxcore/sdk/rollback.go +++ b/zboxcore/sdk/rollback.go @@ -334,7 +334,7 @@ func (a *Allocation) CheckAllocStatus() (AllocStatus, []BlobberStatus, error) { req := a.DataShards - if len(versionMap[latestVersion]) > req { + if len(versionMap[latestVersion]) > req || len(versionMap[prevVersion]) > req { return Commit, blobberRes, nil }