summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-02-21 15:30:45 (GMT)
committerGitHub <noreply@github.com>2023-02-21 15:30:45 (GMT)
commitd8fd9c2f79ad0aceb0b55b33b7480a4063b8cf08 (patch)
tree9880bfcd20524f93471585191e64e4d527eec758 /src
parent3dcee39ceda225798289336f3b3abcd96e83c9c1 (diff)
downloadhdf5-d8fd9c2f79ad0aceb0b55b33b7480a4063b8cf08.zip
hdf5-d8fd9c2f79ad0aceb0b55b33b7480a4063b8cf08.tar.gz
hdf5-d8fd9c2f79ad0aceb0b55b33b7480a4063b8cf08.tar.bz2
Fix issue with collective metadata writes of global heap data (#2480) (#2486)
Diffstat (limited to 'src')
-rw-r--r--src/H5Cmpio.c8
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++;