Phase 6e hotfix: RefStore lives at <data>/refs-db/ not <data>/
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Successful in 11s

Daemon opens refs under <blob_root>/refs-db/ (see services.rs).
FUSE was opening at <data>/ and finding nothing. Match the
daemon's nested convention.
This commit is contained in:
Omar Sobh
2026-07-14 12:44:41 -07:00
parent 4c4b587193
commit 6d16d30eee
+6 -2
View File
@@ -750,8 +750,12 @@ fn main() -> Result<()> {
let tag_dir = cli.data_dir.join("tags-db");
let tags = TagStore::open(tag_dir.clone())
.with_context(|| format!("opening tag store at {}", tag_dir.display()))?;
let refs = RefStore::open(cli.data_dir.clone())
.with_context(|| format!("opening ref store at {}", cli.data_dir.display()))?;
// Ref store lives at <blob_root>/refs-db/ — same nested convention
// the daemon uses in services.rs. Passing cli.data_dir directly
// would land at the wrong path and return empty listings.
let refs_dir = cli.data_dir.join("refs-db");
let refs = RefStore::open(refs_dir.clone())
.with_context(|| format!("opening ref store at {}", refs_dir.display()))?;
let fs = ClawFuse::new(store, snapshots, tags, refs)?;
let mut opts = vec![