summaryrefslogtreecommitdiffstats
path: root/src/H5Omessage.c
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2008-03-07 15:25:05 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2008-03-07 15:25:05 (GMT)
commitd1a21a4553d3f7603eb4086770696931d79b4647 (patch)
treeb4496b59a475615c7c9409eb8d8b52130d23ad2b /src/H5Omessage.c
parent406252cb102ab575e8fac6297f7ae63b4f34baeb (diff)
downloadhdf5-d1a21a4553d3f7603eb4086770696931d79b4647.zip
hdf5-d1a21a4553d3f7603eb4086770696931d79b4647.tar.gz
hdf5-d1a21a4553d3f7603eb4086770696931d79b4647.tar.bz2
[svn-r14711] Added test code and associated bug fixes for the metadata journaling
superblock extension message. Created the file src/H5Omdj_msg.c and moved journaling superblock extension message to it. Tested serial on Phoenix, and parallel on Kagiso.
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r--src/H5Omessage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Omessage.c b/src/H5Omessage.c
index 799f267..b3d94d9 100644
--- a/src/H5Omessage.c
+++ b/src/H5Omessage.c
@@ -496,8 +496,10 @@ H5O_msg_read_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned type_id,
for(idx = 0; idx < oh->nmesgs; idx++)
if(type == oh->mesg[idx].type)
break;
- if(idx == oh->nmesgs)
+ if(idx == oh->nmesgs) {
+
HGOTO_ERROR(H5E_OHDR, H5E_NOTFOUND, NULL, "message type not found")
+ }
/*
* Decode the message if necessary. If the message is shared then retrieve
@@ -514,6 +516,7 @@ H5O_msg_read_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned type_id,
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "unable to copy message to user space")
done:
+
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5O_msg_read_real() */