diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2017-09-23 16:17:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2017-09-23 16:17:47 (GMT) |
commit | 8880ec672eeb8f57c023938074d1336dfc82e2ed (patch) | |
tree | e33165e0428a7e4e9d35952ef9cecd9331b111ee /src/H5Otest.c | |
parent | b5446a9c638b5a95b8dfe132f646aa4358d2b539 (diff) | |
download | hdf5-8880ec672eeb8f57c023938074d1336dfc82e2ed.zip hdf5-8880ec672eeb8f57c023938074d1336dfc82e2ed.tar.gz hdf5-8880ec672eeb8f57c023938074d1336dfc82e2ed.tar.bz2 |
Style cleanups and misc. bugfixes discovered during full SWMR development.
Diffstat (limited to 'src/H5Otest.c')
-rw-r--r-- | src/H5Otest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Otest.c b/src/H5Otest.c index f0deade..68462a1 100644 --- a/src/H5Otest.c +++ b/src/H5Otest.c @@ -731,7 +731,7 @@ H5O_msg_move_to_new_chunk_test(hid_t oid, unsigned msg_type) /* Allocate and initialize new chunk in the file, moving the found message */ /* (*new_idx returned from this routine is unused here) */ - if(H5O__alloc_chunk(loc->file, H5AC_ind_read_dxpl_id, oh, 40, oh->nmesgs, &found_msg, &new_idx) < 0) + if(H5O__alloc_chunk(loc->file, H5AC_ind_read_dxpl_id, oh, (curr_msg->raw_size + H5O_SIZEOF_MSGHDR_OH(oh)), oh->nmesgs, &found_msg, &new_idx) < 0) HGOTO_ERROR(H5E_OHDR, H5E_CANTALLOC, FAIL, "can't allocate new object header chunk") /* Break out of loop, the message was found */ |