diff options
author | John Mainzer <mainzer@hdfgroup.org> | 2008-03-07 15:25:05 (GMT) |
---|---|---|
committer | John Mainzer <mainzer@hdfgroup.org> | 2008-03-07 15:25:05 (GMT) |
commit | d1a21a4553d3f7603eb4086770696931d79b4647 (patch) | |
tree | b4496b59a475615c7c9409eb8d8b52130d23ad2b /src/H5Omessage.c | |
parent | 406252cb102ab575e8fac6297f7ae63b4f34baeb (diff) | |
download | hdf5-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.c | 5 |
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() */ |