diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-14 20:27:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-14 20:27:05 (GMT) |
commit | f24035e12fef0d011f38b91da027a18207a6226b (patch) | |
tree | 6e62da52d08e684c1036f2b7d6e101be0579eea3 | |
parent | 0f885d1a46949acd53029134e79b14a38005897d (diff) | |
download | hdf5-f24035e12fef0d011f38b91da027a18207a6226b.zip hdf5-f24035e12fef0d011f38b91da027a18207a6226b.tar.gz hdf5-f24035e12fef0d011f38b91da027a18207a6226b.tar.bz2 |
[svn-r4352] Purpose:
Bug fix/code cleanup
Description:
Was using old-style property list for dataset transfer.
Solution:
Switched to use generic property list code for dataset transfer proplist.
Platforms tested:
FreeBSD 4.4 (hawkwind)
-rw-r--r-- | perform/overhead.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perform/overhead.c b/perform/overhead.c index 60a5e90..8be9ae2 100644 --- a/perform/overhead.c +++ b/perform/overhead.c @@ -199,7 +199,7 @@ test(fill_t fill_style, const double splits[], } if ((dcpl=H5Pcreate(H5P_DATASET_CREATE))<0) goto error; if (H5Pset_chunk(dcpl, 1, ch_size)<0) goto error; - if ((xfer=H5Pcreate(H5P_DATASET_XFER))<0) goto error; + if ((xfer=H5Pcreate_list(H5P_DATASET_XFER_NEW))<0) goto error; if (H5Pset_btree_ratios(xfer, splits[0], splits[1], splits[2])<0) { goto error; } @@ -275,6 +275,7 @@ test(fill_t fill_style, const double splits[], H5Sclose(mspace); H5Sclose(fspace); H5Pclose(dcpl); + H5Pclose_list(xfer); H5Fclose(file); if (!verbose) { @@ -320,6 +321,7 @@ test(fill_t fill_style, const double splits[], H5Sclose(mspace); H5Sclose(fspace); H5Pclose(dcpl); + H5Pclose_list(xfer); H5Fclose(file); free(had); close(fd); @@ -354,11 +356,11 @@ main(int argc, char *argv[]) /* Default split ratios */ H5Eset_auto(display_error_cb, NULL); - if ((xfer=H5Pcreate(H5P_DATASET_XFER))<0) goto error; + if ((xfer=H5Pcreate_list(H5P_DATASET_XFER_NEW))<0) goto error; if (H5Pget_btree_ratios(xfer, splits+0, splits+1, splits+2)<0) { goto error; } - if (H5Pclose(xfer)<0) goto error; + if (H5Pclose_list(xfer)<0) goto error; /* Parse command-line options */ for (i=1, j=0; i<argc; i++) { |