diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2010-03-24 16:41:14 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2010-03-24 16:41:14 (GMT) |
commit | d3d4d8782bbed2af7d1593759e3665c459c0ab1c (patch) | |
tree | f3f3f449f62cc3ea2462112bbd38a5b1057c1d67 /src/H5Dio.c | |
parent | 2ee007117626d307a248b6b02f5ddb71766cb35f (diff) | |
download | hdf5-d3d4d8782bbed2af7d1593759e3665c459c0ab1c.zip hdf5-d3d4d8782bbed2af7d1593759e3665c459c0ab1c.tar.gz hdf5-d3d4d8782bbed2af7d1593759e3665c459c0ab1c.tar.bz2 |
[svn-r18445] Purpose: Fix bug 1637
Description:
Modified algorithm for extending a dataset with early allocation so it only
deals with the new chunks. Formerly, it would loop over all chunks, checking
to see if each existed in cache and on disk, causing major performance issues
with large numbers of chunks.
Tested: jam, linew, amani (h5committest)
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r-- | src/H5Dio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c index 5723847..d3120b1 100644 --- a/src/H5Dio.c +++ b/src/H5Dio.c @@ -549,7 +549,7 @@ H5D_write(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space, full_overwrite = (hbool_t)((hsize_t)file_nelmts == nelmts ? TRUE : FALSE); /* Allocate storage */ - if(H5D_alloc_storage(dataset, dxpl_id, H5D_ALLOC_WRITE, full_overwrite) < 0) + if(H5D_alloc_storage(dataset, dxpl_id, H5D_ALLOC_WRITE, full_overwrite, NULL) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize storage") } /* end if */ |