From abd21f8099f2a51d87c9a2e1671fb813b7d28c02 Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Tue, 14 Mar 2023 00:19:19 +0300
Subject: [PATCH] [#136] Revert "[#2260] services/object: Do not assemble
object with TTL=1"
This reverts commit 2567f8020ee19b1c866e52db966d5e5e8b62d428. It assumes
that assembling logic could break some failover scenarios if request
forwarding is done. However, it also breaks requesting big objects via a
non-container node with TTL=2. Failover has been rechecked without that
commit and no problems were found. Any (if found) other bugs related to
the forwarding and object assembling must be solved more carefully.
Signed-off-by: Pavel Karpy
---
pkg/services/object/get/exec.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/services/object/get/exec.go b/pkg/services/object/get/exec.go
index c843e9b170..09ff9a82f9 100644
--- a/pkg/services/object/get/exec.go
+++ b/pkg/services/object/get/exec.go
@@ -115,7 +115,7 @@ func (exec execCtx) key() (*ecdsa.PrivateKey, error) {
}
func (exec *execCtx) canAssemble() bool {
- return !exec.isRaw() && !exec.headOnly() && !exec.isLocal()
+ return !exec.isRaw() && !exec.headOnly()
}
func (exec *execCtx) splitInfo() *objectSDK.SplitInfo {