common/ompio: return error code from file_delete operation in file_close
in case the user opened a file using the DELETE_ON_CLOSE flag, return the error code generated in the delete operation. Note, that this is however just a partial fix to the e_close_1 test from the ibm testsuite, since the object destructor that triggers the file_close function does not have a mechanism right now to recognize and return an error code. Signed-off-by: Edgar Gabriel <gabriel@cs.uh.edu>
Этот коммит содержится в:
родитель
f7cae7731c
Коммит
14bd114973
@ -277,8 +277,8 @@ int mca_common_ompio_file_close (mca_io_ompio_file_t *ompio_fh)
|
||||
*/
|
||||
ret = ompio_fh->f_fs->fs_file_close (ompio_fh);
|
||||
}
|
||||
if ( delete_flag && 0 == ompio_fh->f_rank ) {
|
||||
mca_io_ompio_file_delete ( ompio_fh->f_filename, &(MPI_INFO_NULL->super) );
|
||||
if ( delete_flag ) {
|
||||
ret = mca_io_ompio_file_delete ( ompio_fh->f_filename, &(MPI_INFO_NULL->super) );
|
||||
}
|
||||
|
||||
if ( NULL != ompio_fh->f_fs ) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user