From 37ea961e9c054ad162daa5da47f23ace0adbacab Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Mar 2026 17:36:17 +0000 Subject: object/store/loose: Fix hex shard, I was stupid --- object/store/loose/quarantine_promote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object') diff --git a/object/store/loose/quarantine_promote.go b/object/store/loose/quarantine_promote.go index 79759eb9..66bb41df 100644 --- a/object/store/loose/quarantine_promote.go +++ b/object/store/loose/quarantine_promote.go @@ -42,7 +42,7 @@ func promoteLooseQuarantine(parent *Store, tempName string, tempRoot *os.Root) e return fmt.Errorf("objectstore/loose: quarantine contains unexpected file %q", entry.Name()) } - if len(entry.Name()) == 2 && isHexString(entry.Name()) { + if len(entry.Name()) != 2 || !isHexString(entry.Name()) { return fmt.Errorf("objectstore/loose: quarantine contains invalid shard %q", entry.Name()) } -- cgit v1.3.1-10-gc9f91