diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2015-12-16 21:32:40 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2015-12-16 21:32:40 (GMT) |
commit | 765faf883e3061a0f66b3d2074a8fd81d2aed659 (patch) | |
tree | 73b64b70023fec636440a259cc6248c1c204eb49 /src | |
parent | c419289b04a0935f9eae5582016d9e52d7afb25c (diff) | |
download | hdf5-765faf883e3061a0f66b3d2074a8fd81d2aed659.zip hdf5-765faf883e3061a0f66b3d2074a8fd81d2aed659.tar.gz hdf5-765faf883e3061a0f66b3d2074a8fd81d2aed659.tar.bz2 |
[svn-r28694] Fix for the refresh problem from DLS with --enable-threadsafe.
This is part I of the fix for object refresh: no refresh action needed if the file is the writer.
Tested on jam, platypus, os1010test, emu, moohan, ostrich.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Oflush.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Oflush.c b/src/H5Oflush.c index e9189f8..68f47fd 100644 --- a/src/H5Oflush.c +++ b/src/H5Oflush.c @@ -241,6 +241,9 @@ H5O_refresh_metadata(hid_t oid, H5O_loc_t oloc, hid_t dxpl_id) FUNC_ENTER_NOAPI(FAIL) + if(H5F_INTENT(oloc.file) & H5F_ACC_RDWR) + HGOTO_DONE(SUCCEED) + /* Create empty object location */ obj_loc.oloc = &obj_oloc; obj_loc.path = &obj_path; |