From 9bcd09bde0e1c82ca36250120cd353caf470579c Mon Sep 17 00:00:00 2001 From: Srigovind Nayak <5201843+konidev20@users.noreply.github.com> Date: Sat, 4 Oct 2025 00:26:07 +0530 Subject: [PATCH] azure: reduce singleBlockMaxSize to accommodate 32-bit systems --- internal/backend/azure/azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/azure/azure.go b/internal/backend/azure/azure.go index a833012c3..a136b4ee6 100644 --- a/internal/backend/azure/azure.go +++ b/internal/backend/azure/azure.go @@ -42,7 +42,7 @@ type Backend struct { } const singleBlobMaxSize = 5000 * 1024 * 1024 // 5000 MiB - max size for Put Blob API in service version 2019-12-12+ -const singleBlockMaxSize = 4000 * 1024 * 1024 // 4000 MiB - max size for StageBlock API in service version 2019-12-12+ +const singleBlockMaxSize = 2000 * 1024 * 1024 // 2000 MiB - max size for a stage block API since on 32-bit systems, the max size for an int is 2047 MiB const defaultListMaxItems = 5000 // make sure that *Backend implements backend.Backend