summaryrefslogtreecommitdiffstats
path: root/src/H5EA.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-05-21 20:10:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-05-21 20:10:52 (GMT)
commit865321a89d69f5bb69a8bb53bb0e8778cf32961d (patch)
tree49239f690ac18bbd36c01561885f48cd74674132 /src/H5EA.c
parent100ff923d9943189d7ea91561443bf6ee324a4bd (diff)
downloadhdf5-865321a89d69f5bb69a8bb53bb0e8778cf32961d.zip
hdf5-865321a89d69f5bb69a8bb53bb0e8778cf32961d.tar.gz
hdf5-865321a89d69f5bb69a8bb53bb0e8778cf32961d.tar.bz2
[svn-r16977] Description:
Correct error where data block was being marked dirty instead of index block. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.6 (amazon) in debug mode Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'src/H5EA.c')
-rw-r--r--src/H5EA.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5EA.c b/src/H5EA.c
index e35738d..2c259e6 100644
--- a/src/H5EA.c
+++ b/src/H5EA.c
@@ -374,7 +374,7 @@ HDfprintf(stderr, "%s: Index block address is: %a\n", FUNC, hdr->idx_blk_addr);
if(idx < hdr->cparam.idx_blk_elmts) {
/* Set element in index block */
HDmemcpy(((uint8_t *)iblock->elmts) + (hdr->cparam.cls->nat_elmt_size * idx), elmt, hdr->cparam.cls->nat_elmt_size);
- dblock_cache_flags |= H5AC__DIRTIED_FLAG;
+ iblock_cache_flags |= H5AC__DIRTIED_FLAG;
} /* end if */
else {
unsigned sblk_idx; /* Which superblock does this index fall in? */
@@ -418,7 +418,7 @@ HDfprintf(stderr, "%s: dblk_idx = %u, iblock->ndblk_addrs = %Zu\n", FUNC, dblk_i
/* Set data block address in index block */
iblock->dblk_addrs[dblk_idx] = dblk_addr;
- dblock_cache_flags |= H5AC__DIRTIED_FLAG;
+ iblock_cache_flags |= H5AC__DIRTIED_FLAG;
} /* end if */
/* Protect data block */
@@ -453,7 +453,7 @@ HDfprintf(stderr, "%s: New super block address is: %a\n", FUNC, sblk_addr);
/* Set super block address in index block */
iblock->sblk_addrs[sblk_off] = sblk_addr;
- dblock_cache_flags |= H5AC__DIRTIED_FLAG;
+ iblock_cache_flags |= H5AC__DIRTIED_FLAG;
} /* end if */
/* Protect super block */