From 8bcf6981ef7dfe9064a22c1b4fba6c102c8231e9 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 18 Feb 2008 11:12:55 -0500 Subject: [svn-r14598] 1050 (B2) make H5TBdelete_record call H5Dset_extent and parameter checking. Removed #ifdefs regarding possible un-commenting of H5Dset_extent call in H5TBdelete_record. DONE NOW for 1.8, done already FOR 1.6 the H5Dset_extent 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, solaris (in progress :-) ) --- hl/src/H5TB.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hl/src/H5TB.c b/hl/src/H5TB.c index 3502b3a..e80f86c 100644 --- a/hl/src/H5TB.c +++ b/hl/src/H5TB.c @@ -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) -- cgit v0.12