diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2015-09-06 19:55:20 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2015-09-06 19:55:20 (GMT) |
commit | b6f4eee12f80f32833b8b1b4891a821578626941 (patch) | |
tree | 4e69790f1468a3fb680af8faf1f9564094e94304 /src/H5Fio.c | |
parent | c102869b66899956c1658b3d99955f23402c1276 (diff) | |
download | hdf5-b6f4eee12f80f32833b8b1b4891a821578626941.zip hdf5-b6f4eee12f80f32833b8b1b4891a821578626941.tar.gz hdf5-b6f4eee12f80f32833b8b1b4891a821578626941.tar.bz2 |
[svn-r27688] Bring version 3 metadata cache from trunk + adding retries.
Tested on jam, kite, platypus, quail, moohan, ostrich, osx1010test, emu.
Diffstat (limited to 'src/H5Fio.c')
-rw-r--r-- | src/H5Fio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Fio.c b/src/H5Fio.c index fafe5e8..b7e925e 100644 --- a/src/H5Fio.c +++ b/src/H5Fio.c @@ -209,9 +209,10 @@ H5F_flush_tagged_metadata(H5F_t * f, haddr_t tag, hid_t dxpl_id) if(NULL == (fio_info.dxpl = (H5P_genplist_t *)H5I_object(dxpl_id))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "can't get property list") - /* Flush out the metadata accumulator */ - if(H5F__accum_flush(&fio_info) < 0) - HGOTO_ERROR(H5E_IO, H5E_CANTFLUSH, FAIL, "unable to flush metadata accumulator") + + /* Flush and reset the accumulator */ + if(H5F__accum_reset(&fio_info, TRUE) < 0) + HGOTO_ERROR(H5E_IO, H5E_CANTRESET, FAIL, "can't reset accumulator") /* Flush file buffers to disk. */ if(H5FD_flush(f->shared->lf, dxpl_id, FALSE) < 0) @@ -414,4 +415,3 @@ H5F_read_check_metadata(H5F_t *f, hid_t dxpl_id, H5FD_mem_t type, done: FUNC_LEAVE_NOAPI(ret_value); } /* end H5F_read_check_metadata */ - |