content: fix inconsistent root -> node path

This commit is contained in:
Ryan Fleury committed 2026-09-15 08:35:23 -07:00
1 parent 000997d3af
commit 23507a826f
1 file changed
+1 -1
+1 -1
View File
@@ -272,7 +272,7 @@ c_submit_data(C_Key key, Arena **data_arena, String8 data)
// rjf: key is new -> add this key to the associated root
if(key_is_new)
{
U64 root_hash = u64_hash_from_str8(str8_struct(&key.root));
U64 root_hash = key.root.u64[0];
U64 root_slot_idx = root_hash%c_shared->root_slots_count;
U64 root_stripe_idx = root_slot_idx%c_shared->root_stripes_count;
C_RootSlot *root_slot = &c_shared->root_slots[root_slot_idx];