diff options
author | Robb Matzke <matzke@llnl.gov> | 1997-08-29 19:05:50 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1997-08-29 19:05:50 (GMT) |
commit | c48f8b7590ed6bc334a6d62ab651cda8124ba90f (patch) | |
tree | b782b9397109c8307122692a5da4656a79b76dbe /src/H5O.c | |
parent | 3d526ab6cb594c656497fce7efe0589c0f840272 (diff) | |
download | hdf5-c48f8b7590ed6bc334a6d62ab651cda8124ba90f.zip hdf5-c48f8b7590ed6bc334a6d62ab651cda8124ba90f.tar.gz hdf5-c48f8b7590ed6bc334a6d62ab651cda8124ba90f.tar.bz2 |
[svn-r52] ./src/H5O.c
If the symbol table entry doesn't change then the ent_modified
argument to H5O_modify() doesn't change. This allows us to
set ent_modified to false and then call H5O_modify() a whole
bunch of times and easily determine if any of the calls
modified the symbol table entry.
./src/H5D.c
Fixed caching of things in the symbol table entry using the
scheme we came up with a couple months ago.
Diffstat (limited to 'src/H5O.c')
-rw-r--r-- | src/H5O.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -686,7 +686,8 @@ H5O_peek (hdf5_file_t *f, haddr_t addr, const H5O_class_t *type, * optional symbol table entry ENT can be supplied in which * case the cache fields in that symbol table are updated if * appropriate. If the symbol table entry changes then the - * optional ENT_MODIFIED arg will point to a non-zero value. + * optional ENT_MODIFIED arg will point to a non-zero value, + * otherwise ENT_MODIFIED isn't changed. * * The OVERWRITE argument is either a sequence number of a * message to overwrite (usually zero) or the constant @@ -759,7 +760,7 @@ H5O_modify (hdf5_file_t *f, haddr_t addr, H5G_entry_t *ent, /* Copy into the symbol table entry */ if (oh->nlink<=1 && ent && type->cache) { hbool_t modified = (type->cache)(ent, mesg); - if (ent_modified) *ent_modified = modified; + if (modified && ent_modified) *ent_modified = modified; } FUNC_LEAVE (sequence); |