Commit 7c11438a authored by Shane Snyder's avatar Shane Snyder

cleanup sizecheck ifdefs

parent 8578be14
...@@ -508,16 +508,14 @@ static void bake_create_ult(hg_handle_t handle) ...@@ -508,16 +508,14 @@ static void bake_create_ult(hg_handle_t handle)
TIMERS_END_STEP(1); TIMERS_END_STEP(1);
#ifdef USE_SIZECHECK_HEADERS
region_content_t* region = (region_content_t*)pmemobj_direct(prid->oid); region_content_t* region = (region_content_t*)pmemobj_direct(prid->oid);
if(!region) { if(!region) {
out.ret = BAKE_ERR_PMEM; out.ret = BAKE_ERR_PMEM;
goto finish; goto finish;
} }
#ifdef USE_SIZECHECK_HEADERS
region->size = in.region_size; region->size = in.region_size;
#endif
PMEMobjpool* pmem_pool = pmemobj_pool_by_oid(prid->oid); PMEMobjpool* pmem_pool = pmemobj_pool_by_oid(prid->oid);
#ifdef USE_SIZECHECK_HEADERS
pmemobj_persist(pmem_pool, region, sizeof(region->size)); pmemobj_persist(pmem_pool, region, sizeof(region->size));
#endif #endif
......
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