summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-02-18 16:12:55 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-02-18 16:12:55 (GMT)
commit8bcf6981ef7dfe9064a22c1b4fba6c102c8231e9 (patch)
tree9f8cc2f44232456c7f09463aca2876d842deaf76
parent8ee5cbef2d166cfda3de8bc4f5ef15cbe6a345b2 (diff)
downloadhdf5-8bcf6981ef7dfe9064a22c1b4fba6c102c8231e9.zip
hdf5-8bcf6981ef7dfe9064a22c1b4fba6c102c8231e9.tar.gz
hdf5-8bcf6981ef7dfe9064a22c1b4fba6c102c8231e9.tar.bz2
[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 :-) )
-rw-r--r--hl/src/H5TB.c4
1 files changed, 0 insertions, 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)