GitLab maintenance scheduled for Today, 2019-12-05, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit 49ebb1b4 authored by Shane Snyder's avatar Shane Snyder

make sure to write records in current version

parent d4dc84f4
......@@ -120,7 +120,7 @@ static int darshan_log_put_bgq_rec(darshan_fd fd, void* bgq_buf, int ver)
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_BGQ_MOD, rec,
sizeof(struct darshan_bgq_record), ver);
sizeof(struct darshan_bgq_record), DARSHAN_BGQ_VER);
if(ret < 0)
return(-1);
......
......@@ -85,7 +85,7 @@ static int darshan_log_put_hdf5_file(darshan_fd fd, void* hdf5_buf, int ver)
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_HDF5_MOD, file,
sizeof(struct darshan_hdf5_file), ver);
sizeof(struct darshan_hdf5_file), DARSHAN_HDF5_VER);
if(ret < 0)
return(-1);
......
......@@ -94,7 +94,7 @@ static int darshan_log_put_lustre_record(darshan_fd fd, void* lustre_buf, int ve
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_LUSTRE_MOD, rec,
LUSTRE_RECORD_SIZE(rec->counters[LUSTRE_STRIPE_WIDTH]), ver);
LUSTRE_RECORD_SIZE(rec->counters[LUSTRE_STRIPE_WIDTH]), DARSHAN_LUSTRE_VER);
if(ret < 0)
return(-1);
......
......@@ -85,7 +85,7 @@ static int darshan_log_put_mpiio_file(darshan_fd fd, void* mpiio_buf, int ver)
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_MPIIO_MOD, file,
sizeof(struct darshan_mpiio_file), ver);
sizeof(struct darshan_mpiio_file), DARSHAN_MPIIO_VER);
if(ret < 0)
return(-1);
......
......@@ -102,7 +102,7 @@ static int darshan_log_put_null_record(darshan_fd fd, void* null_buf, int ver)
/* append NULL record to darshan log file */
ret = darshan_log_put_mod(fd, DARSHAN_NULL_MOD, rec,
sizeof(struct darshan_null_record), ver);
sizeof(struct darshan_null_record), DARSHAN_NULL_VER);
if(ret < 0)
return(-1);
......
......@@ -85,7 +85,7 @@ static int darshan_log_put_pnetcdf_file(darshan_fd fd, void* pnetcdf_buf, int ve
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_PNETCDF_MOD, file,
sizeof(struct darshan_pnetcdf_file), ver);
sizeof(struct darshan_pnetcdf_file), DARSHAN_PNETCDF_VER);
if(ret < 0)
return(-1);
......
......@@ -120,7 +120,7 @@ static int darshan_log_put_posix_file(darshan_fd fd, void* posix_buf, int ver)
int ret;
ret = darshan_log_put_mod(fd, DARSHAN_POSIX_MOD, file,
sizeof(struct darshan_posix_file), ver);
sizeof(struct darshan_posix_file), DARSHAN_POSIX_VER);
if(ret < 0)
return(-1);
......
......@@ -99,7 +99,7 @@ static int darshan_log_put_stdio_record(darshan_fd fd, void* stdio_buf, int ver)
/* append STDIO record to darshan log file */
ret = darshan_log_put_mod(fd, DARSHAN_STDIO_MOD, rec,
sizeof(struct darshan_stdio_file), ver);
sizeof(struct darshan_stdio_file), DARSHAN_STDIO_VER);
if(ret < 0)
return(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment