diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-11 01:09:00 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-11 01:09:00 (GMT) |
commit | 9129a8452a543482336a85f68ba788691fe50925 (patch) | |
tree | 53de6974aecbd5a0a2443d345e8490fa4db5777c /src/H5Pgcpl.c | |
parent | 051ffe9d61c067549bc1dab94f9de7ea330e64db (diff) | |
download | hdf5-9129a8452a543482336a85f68ba788691fe50925.zip hdf5-9129a8452a543482336a85f68ba788691fe50925.tar.gz hdf5-9129a8452a543482336a85f68ba788691fe50925.tar.bz2 |
[svn-r13493] Description:
Eliminate storing default values for "group info" fields.
Tested on:
FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Pgcpl.c')
-rw-r--r-- | src/H5Pgcpl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Pgcpl.c b/src/H5Pgcpl.c index b1ed560..a4aff51 100644 --- a/src/H5Pgcpl.c +++ b/src/H5Pgcpl.c @@ -253,6 +253,10 @@ H5Pset_link_phase_change(hid_t plist_id, unsigned max_compact, unsigned min_dens HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get group info") /* Update fields */ + if(max_compact != H5G_CRT_GINFO_MAX_COMPACT || min_dense != H5G_CRT_GINFO_MIN_DENSE) + ginfo.store_link_phase_change = TRUE; + else + ginfo.store_link_phase_change = FALSE; ginfo.max_compact = max_compact; ginfo.min_dense = min_dense; @@ -353,6 +357,10 @@ H5Pset_est_link_info(hid_t plist_id, unsigned est_num_entries, unsigned est_name HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get group info") /* Update fields */ + if(est_num_entries != H5G_CRT_GINFO_EST_NUM_ENTRIES || est_name_len != H5G_CRT_GINFO_EST_NAME_LEN) + ginfo.store_est_entry_info = TRUE; + else + ginfo.store_est_entry_info = FALSE; ginfo.est_num_entries = est_num_entries; ginfo.est_name_len = est_name_len; |