summaryrefslogtreecommitdiffstats
path: root/src/H5Dearray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Dearray.c')
-rw-r--r--src/H5Dearray.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/H5Dearray.c b/src/H5Dearray.c
index 35cdad6..7ae62e4 100644
--- a/src/H5Dearray.c
+++ b/src/H5Dearray.c
@@ -131,7 +131,7 @@ static herr_t H5D_earray_idx_copy_shutdown(H5O_layout_t *layout_src,
H5O_layout_t *layout_dst, hid_t dxpl_id);
static herr_t H5D_earray_idx_size(const H5D_chk_idx_info_t *idx_info,
hsize_t *size);
-static herr_t H5D_earray_idx_reset(H5O_layout_t *layout);
+static herr_t H5D_earray_idx_reset(H5O_layout_t *layout, hbool_t reset_addr);
static herr_t H5D_earray_idx_dump(const H5D_chk_idx_info_t *idx_info,
FILE *stream);
static herr_t H5D_earray_idx_dest(const H5D_chk_idx_info_t *idx_info);
@@ -1409,17 +1409,22 @@ done:
* Programmer: Quincey Koziol
* Saturday, January 31, 2009
*
+ * Modifications:
+ * Vailin Choi; April 2009
+ * Reset address of the chunked storage index if RESET_ADDR is set
+ *
*-------------------------------------------------------------------------
*/
static herr_t
-H5D_earray_idx_reset(H5O_layout_t *layout)
+H5D_earray_idx_reset(H5O_layout_t *layout, hbool_t reset_addr)
{
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5D_earray_idx_reset)
HDassert(layout);
/* Reset index info */
- layout->u.chunk.u.earray.addr = HADDR_UNDEF;
+ if(reset_addr)
+ layout->u.chunk.u.earray.addr = HADDR_UNDEF;
layout->u.chunk.u.earray.ea = NULL;
FUNC_LEAVE_NOAPI(SUCCEED)