From eb95d6f892c900db69fc4da4adec7e151f836386 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 29 Sep 2014 17:21:28 +0000 Subject: [PATCH] ompi_info_get_bool returns "success" if the value isn't found, setting "flag" to false, but doesn't set the value of the param itself. So if you don't specify "blocking_fence" in MPI_Info, then the "blocking_fence" flag wasn't being set. Initialize the blocking_fence flag to false as the code logic indicates that it should only be set if someone provides that flag. Thanks to Lisandro Dalcin for reporting it cmr=v1.8.4:reviewer=hjelmn This commit was SVN r32812. --- ompi/mca/osc/sm/osc_sm_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/osc/sm/osc_sm_component.c b/ompi/mca/osc/sm/osc_sm_component.c index fab91edb0a..9559cd5cb8 100644 --- a/ompi/mca/osc/sm/osc_sm_component.c +++ b/ompi/mca/osc/sm/osc_sm_component.c @@ -323,7 +323,7 @@ component_select(struct ompi_win_t *win, void **base, size_t size, int disp_unit #if HAVE_PTHREAD_CONDATTR_SETPSHARED && HAVE_PTHREAD_MUTEXATTR_SETPSHARED pthread_mutexattr_t mattr; pthread_condattr_t cattr; - bool blocking_fence; + bool blocking_fence=false; int flag; if (OMPI_SUCCESS != ompi_info_get_bool(info, "blocking_fence",