@@ -222,19 +222,19 @@ int mca_common_ompio_set_view (ompio_file_t *fh,
222
222
223
223
opal_cstring_t * stripe_str ;
224
224
/* Check the info object set during File_open */
225
- opal_info_get (fh -> f_info , "cb_nodes" , & stripe_str , & flag );
225
+ opal_info_get (info , "cb_nodes" , & stripe_str , & flag );
226
226
if ( flag ) {
227
227
sscanf ( stripe_str -> string , "%d" , & num_cb_nodes );
228
228
OMPIO_MCA_PRINT_INFO (fh , "cb_nodes" , stripe_str -> string , "" );
229
+ /* add the key/value to the file's info object */
230
+ opal_info_set_cstring (fh -> f_info , "cb_nodes" , stripe_str );
229
231
OBJ_RELEASE (stripe_str );
230
232
}
231
233
else {
232
234
/* Check the info object set during file_set_view */
233
- opal_info_get (info , "cb_nodes" , & stripe_str , & flag );
235
+ opal_info_get (fh -> f_info , "cb_nodes" , & stripe_str , & flag );
234
236
if ( flag ) {
235
237
sscanf ( stripe_str -> string , "%d" , & num_cb_nodes );
236
- /* add the key/value to the file's info object */
237
- opal_info_set_cstring (fh -> f_info , "cb_nodes" , stripe_str );
238
238
OMPIO_MCA_PRINT_INFO (fh , "cb_nodes" , stripe_str -> string , "" );
239
239
OBJ_RELEASE (stripe_str );
240
240
}
@@ -327,26 +327,26 @@ int mca_common_ompio_set_view (ompio_file_t *fh,
327
327
}
328
328
329
329
bool info_is_set = false;
330
- opal_info_get (fh -> f_info , "collective_buffering" , & stripe_str , & flag );
330
+ opal_info_get (info , "collective_buffering" , & stripe_str , & flag );
331
331
if ( flag ) {
332
332
if ( strncmp ( stripe_str -> string , "false" , sizeof ("true" ) )){
333
333
info_is_set = true;
334
334
OMPIO_MCA_PRINT_INFO (fh , "collective_buffering" , stripe_str -> string , "enforcing using individual fcoll component" );
335
335
} else {
336
336
OMPIO_MCA_PRINT_INFO (fh , "collective_buffering" , stripe_str -> string , "" );
337
337
}
338
+ /* add the key/value to the file's info object */
339
+ opal_info_set_cstring (fh -> f_info , "collective_buffering" , stripe_str );
338
340
OBJ_RELEASE (stripe_str );
339
341
} else {
340
- opal_info_get (info , "collective_buffering" , & stripe_str , & flag );
342
+ opal_info_get (fh -> f_info , "collective_buffering" , & stripe_str , & flag );
341
343
if ( flag ) {
342
344
if ( strncmp ( stripe_str -> string , "false" , sizeof ("true" ) )){
343
345
info_is_set = true;
344
346
OMPIO_MCA_PRINT_INFO (fh , "collective_buffering" , stripe_str -> string , "enforcing using individual fcoll component" );
345
347
} else {
346
348
OMPIO_MCA_PRINT_INFO (fh , "collective_buffering" , stripe_str -> string , "" );
347
349
}
348
- /* add the key/value to the file's info object */
349
- opal_info_set_cstring (fh -> f_info , "collective_buffering" , stripe_str );
350
350
OBJ_RELEASE (stripe_str );
351
351
}
352
352
}
0 commit comments