Skip to content

Commit a0567b5

Browse files
authored
Merge pull request #7421 from hjelmn/osc_rdma_fix_one_more_issue_with_nondebug_builds_because_assert_is_optd_out
osc/rdma: fix bug in attach for non-debug builds
2 parents 0276679 + 8ee80d8 commit a0567b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_dynamic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ int ompi_osc_rdma_attach (struct ompi_win_t *win, void *base, size_t len)
261261
rdma_region_handle->btl_handle = NULL;
262262
}
263263

264-
assert(OMPI_SUCCESS == ompi_osc_rdma_add_attachment (rdma_region_handle, (intptr_t) base, len));
265-
264+
ret = ompi_osc_rdma_add_attachment (rdma_region_handle, (intptr_t) base, len);
265+
assert(OMPI_SUCCESS == ret);
266266
module->dynamic_handles[region_index] = rdma_region_handle;
267267

268268
#if OPAL_ENABLE_DEBUG

0 commit comments

Comments
 (0)