diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-10-23 05:34:17 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-10-23 05:34:17 (GMT) |
commit | bea706880a135b6d25aea6f211b7448b03326a6b (patch) | |
tree | dfe47692240c41d925a8658035447cd9527252e0 /hl | |
parent | 66c1a254f0f561c290b90917ef191b25cdc9d8dd (diff) | |
download | hdf5-bea706880a135b6d25aea6f211b7448b03326a6b.zip hdf5-bea706880a135b6d25aea6f211b7448b03326a6b.tar.gz hdf5-bea706880a135b6d25aea6f211b7448b03326a6b.tar.bz2 |
[svn-r28197] Revert of 28179, which causes problems in the h5watch test.
Diffstat (limited to 'hl')
-rw-r--r-- | hl/tools/h5watch/h5watch.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/hl/tools/h5watch/h5watch.c b/hl/tools/h5watch/h5watch.c index ea37dae..7bb86a2 100644 --- a/hl/tools/h5watch/h5watch.c +++ b/hl/tools/h5watch/h5watch.c @@ -524,7 +524,6 @@ check_dataset(hid_t fid, char *dsetname) hbool_t unlim_max_dims = FALSE; /* whether dataset has unlimited or max. dimension setting */ void *edata; H5E_auto2_t func; - H5D_layout_t layout; herr_t ret_value = SUCCEED; /* Return value */ /* Disable error reporting */ @@ -540,21 +539,16 @@ check_dataset(hid_t fid, char *dsetname) /* Get dataset's creation property list */ if((dcp = H5Dget_create_plist(did)) < 0) { - error_msg("unable to get dataset's creation property list \"%s\"\n", dsetname); - ret_value = FAIL; - goto done; + error_msg("unable to get dataset's creation property list\"%s\"\n", dsetname); + ret_value = FAIL; + goto done; } - /* Query dataset's layout; the layout should be chunked or virtual */ - if((layout = H5Pget_layout(dcp)) < 0) { - error_msg("unable to get dataset layout \"%s\"\n", dsetname); - ret_value = FAIL; - goto done; - } - if(layout != H5D_CHUNKED && layout != H5D_VIRTUAL) { - error_msg("\"%s\" should be a chunked or virtual dataset\n", dsetname); - ret_value = FAIL; - goto done; + /* Query dataset's layout; the layout should be chunked */ + if(H5Pget_layout(dcp) != H5D_CHUNKED) { + error_msg("\"%s\" should be a chunked dataset\n", dsetname); + ret_value = FAIL; + goto done; } HDmemset(cur_dims, 0, sizeof cur_dims); |