summaryrefslogtreecommitdiffstats
path: root/test/swmr_reader.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-02-09 16:44:38 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-02-09 16:44:38 (GMT)
commitd875f7f3e65754f5618246cec47a75690a58e80c (patch)
treecfbebf28c49b5187f4adbefeb2ef8d9be3ed7ca4 /test/swmr_reader.c
parent0399f55c54f862a15054712d1f976b9bfc7acec9 (diff)
downloadhdf5-d875f7f3e65754f5618246cec47a75690a58e80c.zip
hdf5-d875f7f3e65754f5618246cec47a75690a58e80c.tar.gz
hdf5-d875f7f3e65754f5618246cec47a75690a58e80c.tar.bz2
Minor warning fixes.
Diffstat (limited to 'test/swmr_reader.c')
-rw-r--r--test/swmr_reader.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/swmr_reader.c b/test/swmr_reader.c
index 0af0ece..79ac107 100644
--- a/test/swmr_reader.c
+++ b/test/swmr_reader.c
@@ -205,8 +205,8 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file,
hid_t fid; /* SWMR test file ID */
hid_t fapl; /* file access property list */
symbol_t record; /* The record to read from the dataset */
- unsigned read_attempts; /* The number of read attempts for metadata */
unsigned v; /* Local index variable */
+ hbool_t use_log_vfd = FALSE; /* Use the log VFD (set this manually) */
HDassert(filename);
HDassert(nseconds != 0);
@@ -278,16 +278,14 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file,
if((fapl = h5_fileaccess()) < 0)
return -1;
-#ifdef QAK
/* Log I/O when verbose output it enbabled */
- if(verbose) {
+ if(use_log_vfd) {
char verbose_name[1024];
HDsnprintf(verbose_name, sizeof(verbose_name), "swmr_reader.log.%u", random_seed);
H5Pset_fapl_log(fapl, verbose_name, H5FD_LOG_ALL, (size_t)(512 * 1024 * 1024));
} /* end if */
-#endif /* QAK */
/* Loop over reading records until [at least] the correct # of seconds have passed */
while(curr_time < (time_t)(start_time + (time_t)nseconds)) {