aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 17:36:17 +0000
committerGravatar Runxi Yu2026-03-30 17:36:17 +0000
commit37ea961e9c054ad162daa5da47f23ace0adbacab (patch)
treefacab221a41f3ed280a6ba42233b42ea7e066580 /object
parentobject/store/loose: Add quarantine (diff)
signatureNo signature
object/store/loose: Fix hex shard, I was stupid
Diffstat (limited to 'object')
-rw-r--r--object/store/loose/quarantine_promote.go2
1 files changed, 1 insertions, 1 deletions
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())
}