Commit 405d122f authored by Philip Carns's avatar Philip Carns
Browse files

bugfix: persist root after setting id

parent 5fd5b1db
Pipeline #979 skipped
...@@ -60,7 +60,10 @@ int main(int argc, char **argv) ...@@ -60,7 +60,10 @@ int main(int argc, char **argv)
root_oid = pmemobj_root(g_pmem_pool, sizeof(*g_bake_bulk_root)); root_oid = pmemobj_root(g_pmem_pool, sizeof(*g_bake_bulk_root));
g_bake_bulk_root = pmemobj_direct(root_oid); g_bake_bulk_root = pmemobj_direct(root_oid);
if(uuid_is_null(g_bake_bulk_root->target_id)) if(uuid_is_null(g_bake_bulk_root->target_id))
uuid_generate(g_bake_bulk_root->target_id); uuid_generate(g_bake_bulk_root->target_id);
pmemobj_persist(g_pmem_pool, g_bake_bulk_root, sizeof(*g_bake_bulk_root));
uuid_unparse(g_bake_bulk_root->target_id, target_string); uuid_unparse(g_bake_bulk_root->target_id, target_string);
fprintf(stderr, "BAKE target ID: %s\n", target_string); fprintf(stderr, "BAKE target ID: %s\n", target_string);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment