summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-05-08 19:10:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-05-08 19:10:01 (GMT)
commiteb0f0ad28736bf01b57cfb65e41a6a43690f1774 (patch)
treecf1c7fc3df235bf40682039c447fe1b838b4373a /src/H5D.c
parentf646f060eab9019d4c6bbd661f856dad024457cb (diff)
downloadhdf5-eb0f0ad28736bf01b57cfb65e41a6a43690f1774.zip
hdf5-eb0f0ad28736bf01b57cfb65e41a6a43690f1774.tar.gz
hdf5-eb0f0ad28736bf01b57cfb65e41a6a43690f1774.tar.bz2
[svn-r8497] Purpose:
Code optimization Description: Further reduce the number of copies we make of a hyperslab selection for chunked I/O, especially when we are only going to throw the old selection away for a new one. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.9 (sleipnir) w/parallel
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5D.c b/src/H5D.c
index e0076de..1eb550f 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1232,7 +1232,7 @@ H5Dget_space(hid_t dset_id)
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset");
/* Read the data space message and return a data space object */
- if (NULL==(space=H5S_copy (dset->space)))
+ if (NULL==(space=H5S_copy (dset->space, FALSE)))
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "unable to get data space");
/* Create an atom */
@@ -1965,7 +1965,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "invalid VL location");
/* Copy dataspace for dataset */
- if((new_dset->space = H5S_copy(space))==NULL)
+ if((new_dset->space = H5S_copy(space, FALSE))==NULL)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, NULL, "can't copy dataspace");
/* Set the dataset's dataspace to 'all' selection */