summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-08-22 04:33:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-08-22 04:33:16 (GMT)
commit65996f2921391c653d05ad92b7b62ba27f3c2bdd (patch)
treea321cad5ece5529067e6195c334bd8d85705e45f /src
parentc18f8294a5d93a9bf036dc53882049e1c9891e2d (diff)
downloadhdf5-65996f2921391c653d05ad92b7b62ba27f3c2bdd.zip
hdf5-65996f2921391c653d05ad92b7b62ba27f3c2bdd.tar.gz
hdf5-65996f2921391c653d05ad92b7b62ba27f3c2bdd.tar.bz2
[svn-r19276] Description:
Correct calculation of end of dirty information in metadata accumulator 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/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) 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, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode Mac OS X/32 10.6.4 (amazon) in debug mode Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
Diffstat (limited to 'src')
-rw-r--r--src/H5Faccum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Faccum.c b/src/H5Faccum.c
index 975a6e8..f74925a 100644
--- a/src/H5Faccum.c
+++ b/src/H5Faccum.c
@@ -492,7 +492,7 @@ H5F_accum_write(const H5F_t *f, hid_t dxpl_id, H5FD_mem_t type, haddr_t addr,
/* Adjust the dirty region and mark accumulator dirty */
if(f->shared->accum.dirty) {
- size_t curr_dirty_end = old_offset + f->shared->accum.dirty_off + f->shared->accum.dirty_len;
+ size_t curr_dirty_end = add_size + f->shared->accum.dirty_off + f->shared->accum.dirty_len;
f->shared->accum.dirty_off = 0;
if(size <= curr_dirty_end)