provenance: new_relation takes explicit provenance parameter

Remove POC_PROVENANCE env var lookup from new_relation - callers
now pass provenance explicitly. This fixes tracking when the env
var wasn't set correctly.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-15 01:39:58 -04:00
parent 5d6e663b60
commit cc29cd2225
2 changed files with 3 additions and 5 deletions

View file

@ -196,6 +196,7 @@ pub fn apply_digest_links(store: &mut Store, links: &[DigestLink]) -> (usize, us
store::RelationType::Link,
0.5,
&source, &target,
"agent:digest",
);
if store.add_relation(rel).is_ok() {
println!(" + {}{}", source, target);