shithub: furgit

Download patch

ref: 37ea961e9c054ad162daa5da47f23ace0adbacab
parent: bf394989bad0242c6596520b7528c1a06563efa7
author: Runxi Yu <runxiyu@umich.edu>
date: Mon Mar 30 13:36:17 EDT 2026

object/store/loose: Fix hex shard, I was stupid

--- a/object/store/loose/quarantine_promote.go
+++ b/object/store/loose/quarantine_promote.go
@@ -42,7 +42,7 @@
 			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())
 		}
 
--