diff options
-rw-r--r-- | release_docs/RELEASE.txt | 2 | ||||
-rw-r--r-- | src/H5Gnode.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 1ec6ce2..d3b126b 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -36,6 +36,8 @@ Bug Fixes since HDF5-1.4.0 Library ------- + * Clear symbol table node "dirty" flag when flushing symbol tables to + disk, to reduce I/O calls made & improve performance. QAK - 2002/06/03 * Fixed bug where an object's header could get corrupted in certain obscure situations where many objects were created in the file. QAK - 2002/05/31 * Fixed bug where read/write intent in file IDs created with H5Freopen diff --git a/src/H5Gnode.c b/src/H5Gnode.c index eedb8e6..2acd0a4 100644 --- a/src/H5Gnode.c +++ b/src/H5Gnode.c @@ -338,7 +338,13 @@ H5G_node_flush(H5F_t *f, hbool_t destroy, haddr_t addr, H5G_node_t *sym) * Look for dirty entries and set the node dirty flag. */ for (i=0; i<sym->nsyms; i++) { - if (sym->entry[i].dirty) sym->dirty = TRUE; + if (sym->entry[i].dirty) { + /* Set the node's dirty flag */ + sym->dirty = TRUE; + + /* Reset the entry's dirty flag */ + sym->entry[i].dirty=FALSE; + } /* end if */ } /* @@ -376,7 +382,11 @@ H5G_node_flush(H5F_t *f, hbool_t destroy, haddr_t addr, H5G_node_t *sym) "unable to write symbol table node to the file"); if (buf) H5FL_BLK_FREE(symbol_node,buf); + + /* Reset the node's dirty flag */ + sym->dirty = FALSE; } + /* * Destroy the symbol node? This might happen if the node is being * preempted from the cache. |