summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-03-06 18:54:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-03-06 18:54:24 (GMT)
commit492df7a33ca592cfd24a4ec31cda12b887df3241 (patch)
tree23fe295d0ed1a9141e591e18d04ee0b3ccb246cc /src/H5O.c
parentf25328a15af33de7f804728776ec407ca4393b25 (diff)
downloadhdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.zip
hdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.tar.gz
hdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.tar.bz2
[svn-r13470] Description:
Avoid storing the phase change values for attribute storage, unless they are non-default values. Tested on: Mac OS X/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 52610cf..48ee26e 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -686,6 +686,8 @@ H5O_create(H5F_t *f, hid_t dxpl_id, size_t size_hint, hid_t ocpl_id,
oh->corder_bt2_addr = HADDR_UNDEF;
/* Check for non-default attribute storage phase change values */
+ if(oh->max_compact != H5O_CRT_ATTR_MAX_COMPACT_DEF || oh->min_dense != H5O_CRT_ATTR_MIN_DENSE_DEF)
+ oh->flags |= H5O_HDR_ATTR_STORE_PHASE_CHANGE;
} /* end if */
else {
/* Flags */