rcuja: add missing assign in recompact
[urcu.git] / rcuja / rcuja.c
index e94031d9737f27731a9051a2f74ca1de93f24ce7..b164b96a48ca5d19507c67b2df812769ede423ed 100644 (file)
@@ -512,6 +512,9 @@ int ja_node_recompact_add(struct rcu_ja_node_flag **old_node_flag, uint8_t n,
        /* add node */
        ret = _ja_node_set_nth(new_node_flag, n, child_node_flag);
        assert(!ret);
+       /* Replace the old node with the new recompacted one */
+       rcu_assign_pointer(*old_node_flag, new_node_flag);
+       /* TODO: free old_node (call_rcu) */
        return 0;
 }
 
This page took 0.023444 seconds and 4 git commands to generate.