diff options
| author | 2026-03-30 17:36:17 +0000 | |
|---|---|---|
| committer | 2026-03-30 17:36:17 +0000 | |
| commit | 37ea961e9c054ad162daa5da47f23ace0adbacab (patch) | |
| tree | facab221a41f3ed280a6ba42233b42ea7e066580 /object/store | |
| parent | object/store/loose: Add quarantine (diff) | |
| signature | No signature | |
object/store/loose: Fix hex shard, I was stupid
Diffstat (limited to 'object/store')
| -rw-r--r-- | object/store/loose/quarantine_promote.go | 2 |
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()) } |
