diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-10 17:33:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-10 17:33:41 (GMT) |
commit | f8223b9d29028063f2c755a6187f122406fa8d9f (patch) | |
tree | f7923dcf3a77e8dc07c24ba4e420c5c559588ecc /src | |
parent | 1c53303fd358be86166c14e76c154a477d0107b5 (diff) | |
download | hdf5-f8223b9d29028063f2c755a6187f122406fa8d9f.zip hdf5-f8223b9d29028063f2c755a6187f122406fa8d9f.tar.gz hdf5-f8223b9d29028063f2c755a6187f122406fa8d9f.tar.bz2 |
[svn-r5570] Purpose:
Bug Fix (#709)/Code improvement.
Description:
Allow chunks for chunked datasets to be cached when file is open for
read-only access.
Platforms tested:
IRIX64 6.5 (modi4) w/parallel
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Distore.c | 4 | ||||
-rw-r--r-- | src/H5Fistore.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c index 099eda5..04b3407 100644 --- a/src/H5Distore.c +++ b/src/H5Distore.c @@ -1799,7 +1799,7 @@ H5F_istore_read(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, * MPI processes could be writing to other elements in the same chunk. * Do a direct write-through of only the elements requested. */ - || IS_H5FD_MPIO(f) + || (IS_H5FD_MPIO(f) && (H5F_ACC_RDWR & f->shared->flags)) #endif /* H5_HAVE_PARALLEL */ ) { H5O_layout_t l; /* temporary layout */ @@ -1980,7 +1980,7 @@ H5F_istore_write(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, * MPI processes could be writing to other elements in the same chunk. * Do a direct write-through of only the elements requested. */ - || IS_H5FD_MPIO(f) + || (IS_H5FD_MPIO(f) && (H5F_ACC_RDWR & f->shared->flags)) #endif /* H5_HAVE_PARALLEL */ ) { H5O_layout_t l; /* temporary layout */ diff --git a/src/H5Fistore.c b/src/H5Fistore.c index 099eda5..04b3407 100644 --- a/src/H5Fistore.c +++ b/src/H5Fistore.c @@ -1799,7 +1799,7 @@ H5F_istore_read(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, * MPI processes could be writing to other elements in the same chunk. * Do a direct write-through of only the elements requested. */ - || IS_H5FD_MPIO(f) + || (IS_H5FD_MPIO(f) && (H5F_ACC_RDWR & f->shared->flags)) #endif /* H5_HAVE_PARALLEL */ ) { H5O_layout_t l; /* temporary layout */ @@ -1980,7 +1980,7 @@ H5F_istore_write(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, * MPI processes could be writing to other elements in the same chunk. * Do a direct write-through of only the elements requested. */ - || IS_H5FD_MPIO(f) + || (IS_H5FD_MPIO(f) && (H5F_ACC_RDWR & f->shared->flags)) #endif /* H5_HAVE_PARALLEL */ ) { H5O_layout_t l; /* temporary layout */ |