summaryrefslogtreecommitdiffstats
path: root/src/H5EA.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5EA.c')
-rw-r--r--src/H5EA.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/H5EA.c b/src/H5EA.c
index ae11077..c524d49 100644
--- a/src/H5EA.c
+++ b/src/H5EA.c
@@ -877,7 +877,7 @@ H5EA_close(H5EA_t *ea, hid_t dxpl_id))
if(pending_delete) {
H5EA_hdr_t *hdr; /* Another pointer to extensible array header */
-#ifdef H5_DEBUG_BUILD
+#ifndef NDEBUG
{
unsigned hdr_status = 0; /* Header's status in the metadata cache */
@@ -886,14 +886,11 @@ H5EA_close(H5EA_t *ea, hid_t dxpl_id))
H5E_THROW(H5E_CANTGET, "unable to check metadata cache status for extensible array header")
/* Sanity checks on header */
- if(!(hdr_status & H5AC_ES__IN_CACHE))
- H5E_THROW(H5E_BADVALUE, "extensible array header not in cache")
- if(!(hdr_status & H5AC_ES__IS_PINNED))
- H5E_THROW(H5E_BADVALUE, "extensible array header not pinned")
- if(hdr_status & H5AC_ES__IS_PROTECTED)
- H5E_THROW(H5E_BADVALUE, "extensible array header is incorrectly protected")
+ HDassert(hdr_status & H5AC_ES__IN_CACHE);
+ HDassert(hdr_status & H5AC_ES__IS_PINNED);
+ HDassert(!(hdr_status & H5AC_ES__IS_PROTECTED));
}
-#endif /* H5_DEBUG_BUILD */
+#endif /* NDEBUG */
/* Lock the array header into memory */
/* (OK to pass in NULL for callback context, since we know the header must be in the cache) */