Skip to content

Commit 1de086d

Browse files
edgargabrielggouaillardet
authored andcommitted
correctly set all variables storing information on the file pointer position to zero when setting the file view
(cherry picked from commit open-mpi/ompi@46c20a1)
1 parent e2a53b3 commit 1de086d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/mca/io/ompio/io_ompio_file_set_view.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ int mca_io_ompio_set_view_internal(mca_io_ompio_file_t *fh,
104104
fh->f_disp = disp;
105105
fh->f_offset = disp;
106106
fh->f_total_bytes = 0;
107+
fh->f_index_in_file_view=0;
108+
fh->f_position_in_file_view=0;
107109

108110
ompi_io_ompio_decode_datatype (fh,
109111
newfiletype,

0 commit comments

Comments
 (0)