summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishwanath Venkatesan <vish@hdfgroup.org>2013-07-26 15:06:00 (GMT)
committerVishwanath Venkatesan <vish@hdfgroup.org>2013-07-26 15:06:00 (GMT)
commit46753fb390e047fddeee0e8a343ab68ec98aa50b (patch)
tree8c2ed1659bd1e3f4228b5ee330c6021244e9b56e
parent87a4f487eae1b116657922ce35633ae5ac39d452 (diff)
downloadhdf5-46753fb390e047fddeee0e8a343ab68ec98aa50b.zip
hdf5-46753fb390e047fddeee0e8a343ab68ec98aa50b.tar.gz
hdf5-46753fb390e047fddeee0e8a343ab68ec98aa50b.tar.bz2
[svn-r23936] Adding some function decription comments for functions that did not have one!
-rw-r--r--src/H5VLiod_compactor.c62
-rw-r--r--src/H5VLiod_dset.c9
2 files changed, 67 insertions, 4 deletions
diff --git a/src/H5VLiod_compactor.c b/src/H5VLiod_compactor.c
index 997f054..4092a15 100644
--- a/src/H5VLiod_compactor.c
+++ b/src/H5VLiod_compactor.c
@@ -1647,6 +1647,20 @@ int H5VL_iod_construct_merged_request (request_list_t *list,
}/*end H5VL_iod_construct_merged_request*/
+
+/*-------------------------------------------------------------------------
+ * Function: H5VL_print_block_container
+ *
+ * Purpose: Function to display the contents of a block container
+ *
+ * Return: Void
+ *
+ * Programmer: Vishwanth Venkatesan
+ * July, 2013
+ *
+ *-------------------------------------------------------------------------
+ */
+
static void H5VL_print_block_container (block_container_t *cont,
size_t num){
@@ -1660,7 +1674,19 @@ static void H5VL_print_block_container (block_container_t *cont,
#endif
}
-
+/*-------------------------------------------------------------------------
+ * Function: H5VL_iod_copy_desc
+ *
+ * Purpose: Copy block container to destination container
+ *
+ * Return: SUCCESS : size_t elements copied
+ *
+ *
+ * Programmer: Vishwanth Venkatesan
+ * July, 2013
+ *
+ *-------------------------------------------------------------------------
+ */
static size_t H5VL_iod_copy_desc (block_container_t *sm_block,
block_container_t *tmp_block,
@@ -1678,6 +1704,21 @@ static size_t H5VL_iod_copy_desc (block_container_t *sm_block,
return cnt;
}
+/*-------------------------------------------------------------------------
+ * Function: H5VL_iod_copy_desc_reduced
+ *
+ * Purpose: Copy block container to destination container with varible
+ * index
+ *
+ * Return: SUCCESS : size_t elements copied
+ *
+ *
+ * Programmer: Vishwanth Venkatesan
+ * July, 2013
+ *
+ *-------------------------------------------------------------------------
+ */
+
static size_t H5VL_iod_copy_desc_reduced (block_container_t *sm_block,
block_container_t *tmp_block,
size_t start, size_t counter,
@@ -1696,6 +1737,22 @@ static size_t H5VL_iod_copy_desc_reduced (block_container_t *sm_block,
}
+/*-------------------------------------------------------------------------
+ * Function: H5VL_iod_get_difference
+ *
+ * Purpose: Get the difference between AXE IDs
+ *
+ * Return: SUCCESS : Difference between AXE IDs
+ *
+ *
+ *
+ * Programmer: Vishwanth Venkatesan
+ * July, 2013
+ *
+ *-------------------------------------------------------------------------
+ */
+
+
static uint64_t H5VL_iod_get_difference (uint64_t axe_id_1,
uint64_t axe_id_2){
@@ -1865,9 +1922,6 @@ static size_t H5VL_iod_get_selected_fblocks_count (int *selected_indices,
*-------------------------------------------------------------------------
*/
-
-
-
int H5VL_iod_sort_block_container (block_container_t *io_array,
size_t num_entries,
int *sorted)
diff --git a/src/H5VLiod_dset.c b/src/H5VLiod_dset.c
index 8938f86..93544a6 100644
--- a/src/H5VLiod_dset.c
+++ b/src/H5VLiod_dset.c
@@ -722,10 +722,19 @@ H5VL_iod_server_dset_read_cb(AXE_engine_t UNUSED axe_engine,
free(wlist);
wlist = NULL;
}
+ if (NULL != rlist){
+ free(rlist);
+ wlist = NULL;
+ }
if (NULL != dlist){
free(dlist);
dlist = NULL;
}
+ if (NULL != drlist){
+ free(drlist);
+ drlist = NULL;
+ }
+
if (CP_SUCCESS != H5VL_iod_destroy_compactor_queue(cqueue)){
HGOTO_ERROR(H5E_HEAP, H5E_NOSPACE, CP_FAIL, "Cannot free NULL queue\n");