summaryrefslogtreecommitdiffstats
path: root/src/H5SMcache.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2007-01-19 18:51:03 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2007-01-19 18:51:03 (GMT)
commit632773727c6f08c583bb6748d0d9dd11fe800364 (patch)
treed40f61c64afbbf59674223e23dc4447760e55fe2 /src/H5SMcache.c
parentff572efab750d3667d04ef0143315eb3a9e99585 (diff)
downloadhdf5-632773727c6f08c583bb6748d0d9dd11fe800364.zip
hdf5-632773727c6f08c583bb6748d0d9dd11fe800364.tar.gz
hdf5-632773727c6f08c583bb6748d0d9dd11fe800364.tar.bz2
[svn-r13159] Added h5debug support for shared message structures.
Tests run on juniper, kagiso, smirom. h5debug run manually on sample files on Windows, juniper, and kagiso.
Diffstat (limited to 'src/H5SMcache.c')
-rw-r--r--src/H5SMcache.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/H5SMcache.c b/src/H5SMcache.c
index 1447fc9..a1f5ac5 100644
--- a/src/H5SMcache.c
+++ b/src/H5SMcache.c
@@ -32,7 +32,6 @@
/****************/
/* Local Macros */
/****************/
-#define H5SM_LIST_VERSION 0 /* Verion of Shared Object Header Message List Indexes */
/******************/
/* Local Typedefs */
@@ -118,6 +117,11 @@ H5SM_flush_table(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5SM_ma
uint32_t computed_chksum; /* Computed metadata checksum value */
int x; /* Counter variable */
+ /* Verify that we're writing version 0 of the table; this is the only
+ * version defined so far.
+ */
+ HDassert(f->shared->sohm_vers == HDF5_SHAREDHEADER_VERSION);
+
/* Encode the master table and all of the index headers as one big blob */
size = H5SM_TABLE_SIZE(f) + (H5SM_INDEX_HEADER_SIZE(f) * table->num_indexes);
@@ -200,6 +204,11 @@ H5SM_load_table(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED *udata1
FUNC_ENTER_NOAPI(H5SM_load_table, NULL)
+ /* Verify that we're reading version 0 of the table; this is the only
+ * version defined so far.
+ */
+ HDassert(f->shared->sohm_vers == HDF5_SHAREDHEADER_VERSION);
+
/* Allocate space for the master table in memory */
if(NULL == (table = H5MM_calloc(sizeof(H5SM_master_table_t))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")