Skip to content

Commit

Permalink
add check for v2 alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Nov 13, 2024
1 parent ba81811 commit 31c848c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gateway/zcn/gateway-zcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ func (z *ZCN) NewGatewayLayer(creds madmin.Credentials) (minio.ObjectLayer, erro
if status == sdk.Broken {
return nil, errors.New("allocation_broken")
}
if allocation.StorageVersion == sdk.StorageV2 && status == sdk.Broken {
return nil, errors.New("repair_allocation")
}
sdk.CurrentMode = sdk.UploadModeHigh
sdk.SetSingleClietnMode(true)
sdk.SetShouldVerifyHash(false)
Expand Down

0 comments on commit 31c848c

Please sign in to comment.