diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2017-01-31 04:32:45 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2017-01-31 04:32:45 (GMT) |
commit | 8ffa26c49c68ca8e7a2fef62bd29c1f23395207c (patch) | |
tree | 3448a234962a2baf6ce20ee54264f7a20a3b984c /src | |
parent | 2d98fd0078aa009467f39877c69e3de2758eef0d (diff) | |
download | hdf5-8ffa26c49c68ca8e7a2fef62bd29c1f23395207c.zip hdf5-8ffa26c49c68ca8e7a2fef62bd29c1f23395207c.tar.gz hdf5-8ffa26c49c68ca8e7a2fef62bd29c1f23395207c.tar.bz2 |
Update sanity checks for dataset refresh code.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Dint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index 5a11581..2048e49 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -3645,7 +3645,9 @@ H5D__refresh(hid_t dset_id, H5D_t *dset, hid_t dxpl_id) FUNC_ENTER_NOAPI_NOINIT + /* Sanity check */ HDassert(dset); + HDassert(dset->shared); /* If the layout is virtual... */ if(dset->shared->layout.type == H5D_VIRTUAL) { @@ -3666,9 +3668,6 @@ H5D__refresh(hid_t dset_id, H5D_t *dset, hid_t dxpl_id) done: /* Release hold on virtual datasets' files */ if(virt_dsets_held) { - /* Sanity check */ - HDassert(dset->shared->layout.type == H5D_VIRTUAL); - /* Release the hold on source datasets' files */ if(H5D__virtual_release_source_dset_files(head) < 0) HDONE_ERROR(H5E_DATASET, H5E_CANTDEC, FAIL, "can't release VDS source files held open") |