summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-12-21 04:41:42 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-12-21 04:41:42 (GMT)
commit18e6ec82d0a96a6a75712c205b1f33480038d17e (patch)
treed0028387016e5e1ce79a94e2ea4a328425d0a714 /src/H5C.c
parentd6adb6526d83e6f799f16933757fb26131856f21 (diff)
downloadhdf5-18e6ec82d0a96a6a75712c205b1f33480038d17e.zip
hdf5-18e6ec82d0a96a6a75712c205b1f33480038d17e.tar.gz
hdf5-18e6ec82d0a96a6a75712c205b1f33480038d17e.tar.bz2
Squash merge of MDC logging changes.
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/H5C.c b/src/H5C.c
index a22eca0..b5dc6a5 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -282,13 +282,8 @@ H5C_create(size_t max_cache_size,
cache_ptr->flush_in_progress = FALSE;
- cache_ptr->logging_enabled = FALSE;
-
- cache_ptr->currently_logging = FALSE;
-
- cache_ptr->log_file_ptr = NULL;
-
- cache_ptr->trace_file_ptr = NULL;
+ if(NULL == (cache_ptr->log_info = (H5C_log_info_t *)H5MM_calloc(sizeof(H5C_log_info_t))))
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTALLOC, NULL, "memory allocation failed")
cache_ptr->aux_ptr = aux_ptr;
@@ -493,6 +488,9 @@ done:
if(cache_ptr->tag_list != NULL)
H5SL_close(cache_ptr->tag_list);
+ if(cache_ptr->log_info != NULL)
+ H5MM_xfree(cache_ptr->log_info);
+
cache_ptr->magic = 0;
cache_ptr = H5FL_FREE(H5C_t, cache_ptr);
} /* end if */
@@ -865,6 +863,9 @@ H5C_dest(H5F_t * f)
cache_ptr->tag_list = NULL;
} /* end if */
+ if(cache_ptr->log_info != NULL)
+ H5MM_xfree(cache_ptr->log_info);
+
#ifndef NDEBUG
#if H5C_DO_SANITY_CHECKS
if(cache_ptr->get_entry_ptr_from_addr_counter > 0)