diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-02-20 14:49:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 14:49:34 (GMT) |
commit | b3da28b731e50f63bb1004b016bdf7ef33c5328b (patch) | |
tree | 0ffc25aeb981c462ab935ee7183f5af68a47aa6b /src | |
parent | bfef9945a88d52ad449b2f871c6d0a80ab94170f (diff) | |
download | hdf5-b3da28b731e50f63bb1004b016bdf7ef33c5328b.zip hdf5-b3da28b731e50f63bb1004b016bdf7ef33c5328b.tar.gz hdf5-b3da28b731e50f63bb1004b016bdf7ef33c5328b.tar.bz2 |
Fix issue with collective metadata writes of global heap data (#2480)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Cmpio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Cmpio.c b/src/H5Cmpio.c index 6af346c..cfd0780 100644 --- a/src/H5Cmpio.c +++ b/src/H5Cmpio.c @@ -1003,6 +1003,10 @@ H5C__collective_write(H5F_t *f) bufs[0] = base_buf; types[0] = entry_ptr->type->mem_type; + /* Treat global heap as raw data */ + if (types[0] == H5FD_MEM_GHEAP) + types[0] = H5FD_MEM_DRAW; + node = H5SL_next(node); i = 1; while (node) { @@ -1016,6 +1020,10 @@ H5C__collective_write(H5F_t *f) bufs[i] = entry_ptr->image_ptr; types[i] = entry_ptr->type->mem_type; + /* Treat global heap as raw data */ + if (types[i] == H5FD_MEM_GHEAP) + types[i] = H5FD_MEM_DRAW; + /* Advance to next node & array location */ node = H5SL_next(node); i++; |