common/ompio: fix the lazy_open flag
fixes an erroneous error code being returned when activating the mca_io_ompio_sharedfp_lazy_open flag with MPI_MODE_APPEND. fixes issue #3904 Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
Этот коммит содержится в:
родитель
b0692c6836
Коммит
8e17827a13
@ -200,12 +200,12 @@ int mca_common_ompio_file_open (ompi_communicator_t *comm,
|
|||||||
!mca_io_ompio_sharedfp_lazy_open ) {
|
!mca_io_ompio_sharedfp_lazy_open ) {
|
||||||
shared_fp_base_module = ompio_fh->f_sharedfp;
|
shared_fp_base_module = ompio_fh->f_sharedfp;
|
||||||
ret = shared_fp_base_module->sharedfp_seek(ompio_fh,current_size, MPI_SEEK_SET);
|
ret = shared_fp_base_module->sharedfp_seek(ompio_fh,current_size, MPI_SEEK_SET);
|
||||||
}
|
if ( MPI_SUCCESS != ret ) {
|
||||||
else {
|
opal_output(1, "mca_common_ompio_file_open: Could not adjust position of "
|
||||||
opal_output(1, "mca_common_ompio_file_open: Could not adjust position of "
|
"shared file pointer with MPI_MODE_APPEND\n");
|
||||||
"shared file pointer with MPI_MODE_APPEND\n");
|
ret = MPI_ERR_OTHER;
|
||||||
ret = MPI_ERR_OTHER;
|
goto fn_fail;
|
||||||
goto fn_fail;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user