[svn-r21676] Description:

Don't check dataset storage size for compressed datasets with region
reference datatypes.  (The address of the region reference type in the file
varies and affects the compressed size)

Tested on:
    Mac OS X/32 10.7.2 (amazon) w/debug & production + check-vfd
This commit is contained in:
Quincey Koziol
2011-10-26 09:58:36 -05:00
parent 1fde26b7a5
commit 44b776141b

View File

@@ -1236,7 +1236,8 @@ compare_datasets(hid_t did, hid_t did2, hid_t pid, const void *wbuf)
* data in each dataset will (probably) be different and the storage
* size will thus vary)
*/
if(!(nfilters > 0 && H5Tdetect_class(tid, H5T_VLEN))) {
if(!(nfilters > 0 && (H5Tdetect_class(tid, H5T_VLEN) ||
(H5Tdetect_class(tid, H5T_REFERENCE) && H5Tequal(tid, H5T_STD_REF_DSETREG))))) {
hsize_t storage_size = H5Dget_storage_size(did); /* Dataset's raw data storage size */
hsize_t storage_size2 = H5Dget_storage_size(did2); /* 2nd Dataset's raw data storage size */