mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r14488] uncomment a call to H5Dset_extent in the delete records function
this function was done in 2002 but was at a time (2003-2006) previewed not to be used it is now being used again tested: windows, linux
This commit is contained in:
parent
6c25da5933
commit
af634ca420
@ -1353,9 +1353,7 @@ herr_t H5TBdelete_record( hid_t loc_id,
|
||||
size_t *src_offset;
|
||||
size_t *src_sizes;
|
||||
hsize_t nrows;
|
||||
#if defined (SHRINK)
|
||||
hsize_t dims[1];
|
||||
#endif
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
@ -1443,11 +1441,9 @@ herr_t H5TBdelete_record( hid_t loc_id,
|
||||
* Change the table dimension
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#if defined (SHRINK)
|
||||
dims[0] = ntotal_records - nrecords;
|
||||
if(H5Dset_extent( did, dims ) < 0)
|
||||
goto out;
|
||||
#endif
|
||||
|
||||
/* End access to the dataset */
|
||||
if(H5Dclose( did ) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user