diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-08 17:02:09 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-08 17:02:09 (GMT) |
commit | a4aae55760919e2e4a66a58b2a66d1a28253ebd5 (patch) | |
tree | a9e10a9dbf5093b87ddd75967305ff3d48bd3b3b /src/H5Ocopy.c | |
parent | 837ab64fa733ce7587827380061e4a91b2e07b58 (diff) | |
download | hdf5-a4aae55760919e2e4a66a58b2a66d1a28253ebd5.zip hdf5-a4aae55760919e2e4a66a58b2a66d1a28253ebd5.tar.gz hdf5-a4aae55760919e2e4a66a58b2a66d1a28253ebd5.tar.bz2 |
[svn-r16698] Purpose: Fix bug 503
Description:
Changed Skip list package to use a deterministic skip list. This allows the
skip list package to avoid calling rand() and srand(), even on machines without
rand_r(). There is no longer a p-value or maximum level for skip lists.
Tested: jam, smirom, linew (h5committest)
Diffstat (limited to 'src/H5Ocopy.c')
-rw-r--r-- | src/H5Ocopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ocopy.c b/src/H5Ocopy.c index 7b76f3d..2926c6b 100644 --- a/src/H5Ocopy.c +++ b/src/H5Ocopy.c @@ -913,7 +913,7 @@ H5O_copy_header(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */, cpy_info.preserve_null = TRUE; /* Create a skip list to keep track of which objects are copied */ - if((cpy_info.map_list = H5SL_create(H5SL_TYPE_HADDR, 0.5, (size_t)16)) == NULL) + if((cpy_info.map_list = H5SL_create(H5SL_TYPE_HADDR)) == NULL) HGOTO_ERROR(H5E_SLIST, H5E_CANTCREATE, FAIL, "cannot make skip list") /* copy the object from the source file to the destination file */ |