Skip to content

Commit 3347767

Browse files
committed
osc/rdma: Fix priority setting bug
In a previous commit, I accidently set the priority to always be 0. Which is wrong, but had no practical impact, given the priorities and availabilities of other OSC components. However, it was wrong and this patch fixes the issue. Signed-off-by: Brian Barrett <[email protected]> (cherry picked from commit cf253bc)
1 parent 7356be9 commit 3347767

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ static int ompi_osc_rdma_component_query (struct ompi_win_t *win, void **base, s
374374
struct ompi_communicator_t *comm, struct opal_info_t *info,
375375
int flavor)
376376
{
377-
378377
if (MPI_WIN_FLAVOR_SHARED == flavor) {
379378
return -1;
380379
}
@@ -395,7 +394,7 @@ static int ompi_osc_rdma_component_query (struct ompi_win_t *win, void **base, s
395394
return -1;
396395
}
397396

398-
return OMPI_SUCCESS;;
397+
return mca_osc_rdma_component.priority;
399398
}
400399

401400
static int ompi_osc_rdma_initialize_region (ompi_osc_rdma_module_t *module, void **base, size_t size) {

0 commit comments

Comments
 (0)