summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5FS.c3
-rw-r--r--src/H5FSpkg.h3
-rw-r--r--src/H5FSsection.c44
3 files changed, 25 insertions, 25 deletions
diff --git a/src/H5FS.c b/src/H5FS.c
index e6bb45d..981b3c8 100644
--- a/src/H5FS.c
+++ b/src/H5FS.c
@@ -54,9 +54,6 @@
/********************/
/* Local Prototypes */
/********************/
-#ifdef H5FS_DEBUG
-herr_t H5FS_assert(const H5FS_t *fspace);
-#endif /* H5FS_DEBUG */
/*********************/
diff --git a/src/H5FSpkg.h b/src/H5FSpkg.h
index f90a737..7478754 100644
--- a/src/H5FSpkg.h
+++ b/src/H5FSpkg.h
@@ -216,7 +216,10 @@ H5_DLL herr_t H5FS_cache_hdr_dest(H5F_t *f, H5FS_t *hdr);
H5_DLL herr_t H5FS_cache_sinfo_dest(H5F_t *f, H5FS_sinfo_t *sinfo);
/* Sanity check routines */
+#ifdef H5FS_DEBUG
+H5_DLL herr_t H5FS_assert(const H5FS_t *fspace);
H5_DLL herr_t H5FS_sect_assert(const H5FS_t *fspace);
+#endif /* H5FS_DEBUG */
#endif /* _H5FSpkg_H */
diff --git a/src/H5FSsection.c b/src/H5FSsection.c
index 5de42d8..21a1027 100644
--- a/src/H5FSsection.c
+++ b/src/H5FSsection.c
@@ -1774,7 +1774,7 @@ HDfprintf(stderr, "%s: fspace->hdr->tot_sect_count = %Hu\n", "H5FS_sect_assert",
separate_obj = 0;
/* Check for bins to work on */
- if(fspace->bins) {
+ if(fspace->sinfo->bins) {
hsize_t acc_tot_sect_count; /* Accumulated total section count from bins */
hsize_t acc_serial_sect_count; /* Accumulated serializable section count from bins */
hsize_t acc_ghost_sect_count; /* Accumulated ghost section count from bins */
@@ -1790,19 +1790,19 @@ HDfprintf(stderr, "%s: fspace->hdr->tot_sect_count = %Hu\n", "H5FS_sect_assert",
acc_tot_size_count = 0;
acc_serial_size_count = 0;
acc_ghost_size_count = 0;
- for(u = 0; u < fspace->nbins; u++) {
- acc_tot_sect_count += fspace->bins[u].tot_sect_count;
- acc_serial_sect_count += fspace->bins[u].serial_sect_count;
- acc_ghost_sect_count += fspace->bins[u].ghost_sect_count;
- if(fspace->bins[u].bin_list) {
+ for(u = 0; u < fspace->sinfo->nbins; u++) {
+ acc_tot_sect_count += fspace->sinfo->bins[u].tot_sect_count;
+ acc_serial_sect_count += fspace->sinfo->bins[u].serial_sect_count;
+ acc_ghost_sect_count += fspace->sinfo->bins[u].ghost_sect_count;
+ if(fspace->sinfo->bins[u].bin_list) {
H5SL_node_t *curr_size_node; /* Current section size node in skip list */
size_t bin_serial_count; /* # of serializable sections in this bin */
size_t bin_ghost_count; /* # of ghost sections in this bin */
- acc_tot_size_count += H5SL_count(fspace->bins[u].bin_list);
+ acc_tot_size_count += H5SL_count(fspace->sinfo->bins[u].bin_list);
/* Walk through the sections in this bin */
- curr_size_node = H5SL_first(fspace->bins[u].bin_list);
+ curr_size_node = H5SL_first(fspace->sinfo->bins[u].bin_list);
bin_serial_count = 0;
bin_ghost_count = 0;
while(curr_size_node != NULL) {
@@ -1868,30 +1868,30 @@ HDfprintf(stderr, "%s: sect->size = %Hu, sect->addr = %a, sect->type = %u\n", "H
} /* end while */
/* Check the number of serializable & ghost sections in this bin */
- HDassert(fspace->bins[u].tot_sect_count == (bin_serial_count + bin_ghost_count));
- HDassert(fspace->bins[u].serial_sect_count == bin_serial_count);
- HDassert(fspace->bins[u].ghost_sect_count == bin_ghost_count);
+ HDassert(fspace->sinfo->bins[u].tot_sect_count == (bin_serial_count + bin_ghost_count));
+ HDassert(fspace->sinfo->bins[u].serial_sect_count == bin_serial_count);
+ HDassert(fspace->sinfo->bins[u].ghost_sect_count == bin_ghost_count);
} /* end if */
} /* end for */
/* Check counts from bins vs. global counts */
- HDassert(fspace->tot_size_count == acc_tot_size_count);
- HDassert(fspace->serial_size_count == acc_serial_size_count);
- HDassert(fspace->ghost_size_count == acc_ghost_size_count);
- HDassert(fspace->hdr->tot_sect_count == acc_tot_sect_count);
- HDassert(fspace->hdr->serial_sect_count == acc_serial_sect_count);
- HDassert(fspace->hdr->ghost_sect_count == acc_ghost_sect_count);
+ HDassert(fspace->sinfo->tot_size_count == acc_tot_size_count);
+ HDassert(fspace->sinfo->serial_size_count == acc_serial_size_count);
+ HDassert(fspace->sinfo->ghost_size_count == acc_ghost_size_count);
+ HDassert(fspace->tot_sect_count == acc_tot_sect_count);
+ HDassert(fspace->serial_sect_count == acc_serial_sect_count);
+ HDassert(fspace->ghost_sect_count == acc_ghost_sect_count);
} /* end if */
else {
/* Check counts are zero */
- HDassert(fspace->hdr->tot_sect_count == 0);
- HDassert(fspace->hdr->serial_sect_count == 0);
- HDassert(fspace->hdr->ghost_sect_count == 0);
+ HDassert(fspace->tot_sect_count == 0);
+ HDassert(fspace->serial_sect_count == 0);
+ HDassert(fspace->ghost_sect_count == 0);
} /* end else */
/* Make certain that the number of sections on the address list is correct */
- if(fspace->merge_list)
- HDassert(fspace->hdr->tot_sect_count == (separate_obj + H5SL_count(fspace->merge_list)));
+ if(fspace->sinfo->merge_list)
+ HDassert(fspace->tot_sect_count == (separate_obj + H5SL_count(fspace->sinfo->merge_list)));
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5FS_sect_assert() */