summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2012-12-05 20:15:54 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2012-12-05 20:15:54 (GMT)
commit8f3a8710ca0df1a18bc200612b2e50acafd8da1a (patch)
treed465d6ac97e878539de49f940914defa97549364 /hl
parentbbeea7dd9999b040cc94299e03bac6bea28ee0ee (diff)
downloadhdf5-8f3a8710ca0df1a18bc200612b2e50acafd8da1a.zip
hdf5-8f3a8710ca0df1a18bc200612b2e50acafd8da1a.tar.gz
hdf5-8f3a8710ca0df1a18bc200612b2e50acafd8da1a.tar.bz2
[svn-r23078] I took out O_SYNC flag from the code. I used it to do performance test. But
we decided not to support it. Tested on koala.
Diffstat (limited to 'hl')
-rw-r--r--hl/test/dectris_hl_perf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hl/test/dectris_hl_perf.c b/hl/test/dectris_hl_perf.c
index 1938410..c18fe1c 100644
--- a/hl/test/dectris_hl_perf.c
+++ b/hl/test/dectris_hl_perf.c
@@ -275,7 +275,7 @@ test_direct_write_uncompressed_data(hid_t fapl_id)
gettimeofday(&timeval_start,NULL);
/* Reopen the file and dataset */
- if((file = H5Fopen(filename, H5F_ACC_RDWR|H5F_ACC_SYNC, fapl_id)) < 0)
+ if((file = H5Fopen(filename, H5F_ACC_RDWR, fapl_id)) < 0)
TEST_ERROR;
if((dataset = H5Dopen(file, DIRECT_UNCOMPRESSED_DSET, H5P_DEFAULT)) < 0)
@@ -340,7 +340,7 @@ test_direct_write_compressed_data(hid_t fapl_id)
gettimeofday(&timeval_start,NULL);
/* Reopen the file and dataset */
- if((file = H5Fopen(filename, H5F_ACC_RDWR|H5F_ACC_SYNC, fapl_id)) < 0)
+ if((file = H5Fopen(filename, H5F_ACC_RDWR, fapl_id)) < 0)
TEST_ERROR;
if((dataset = H5Dopen(file, DIRECT_COMPRESSED_DSET, H5P_DEFAULT)) < 0)
@@ -411,7 +411,7 @@ test_compressed_write(hid_t fapl_id)
gettimeofday(&timeval_start,NULL);
/* Reopen the file and dataset */
- if((file = H5Fopen(filename, H5F_ACC_RDWR|H5F_ACC_SYNC, fapl_id)) < 0)
+ if((file = H5Fopen(filename, H5F_ACC_RDWR, fapl_id)) < 0)
TEST_ERROR;
if((dataset = H5Dopen(file, REG_COMPRESSED_DSET, H5P_DEFAULT)) < 0)
@@ -499,7 +499,7 @@ test_no_compress_write(hid_t fapl_id)
gettimeofday(&timeval_start,NULL);
/* Reopen the file and dataset */
- if((file = H5Fopen(filename, H5F_ACC_RDWR|H5F_ACC_SYNC, fapl_id)) < 0)
+ if((file = H5Fopen(filename, H5F_ACC_RDWR, fapl_id)) < 0)
TEST_ERROR;
if((dataset = H5Dopen(file, REG_NO_COMPRESS_DSET, H5P_DEFAULT)) < 0)
@@ -568,7 +568,7 @@ test_unix_write(void)
TESTING("Write compressed data to a Unix file");
/* create file*/
- flag = O_WRONLY|O_SYNC;
+ flag = O_WRONLY;
/* Start the timer */
gettimeofday(&timeval_start,NULL);