summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2016-11-04 18:49:39 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2016-11-04 18:49:39 (GMT)
commit2b5efccc302ee577daa59639109921456f787813 (patch)
tree3f2c28cf0a416606a22c786082760b87296be9e0 /src/H5Fint.c
parentab66f6aa8c44e9298b42db7657be269e684bd274 (diff)
parent9187e8c5d0663c176c50cc5b6053a8732a834194 (diff)
downloadhdf5-2b5efccc302ee577daa59639109921456f787813.zip
hdf5-2b5efccc302ee577daa59639109921456f787813.tar.gz
hdf5-2b5efccc302ee577daa59639109921456f787813.tar.bz2
Merge pull request #134 in HDFFV/hdf5 from ~KOZIOL/hdf5:develop to develop
* commit '9187e8c5d0663c176c50cc5b6053a8732a834194': Add missing retrieval of cache logging name, from revise_chunks.
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index fb05efc..dab1900 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -686,6 +686,22 @@ H5F_new(H5F_file_t *shared, unsigned flags, hid_t fcpl_id, hid_t fapl_id, H5FD_t
*/
f->shared->use_tmp_space = !H5F_HAS_FEATURE(f, H5FD_FEAT_HAS_MPI);
+ /* Get the metadata cache log location (if we're logging) */
+ {
+ char *mdc_log_location = NULL; /* location of metadata cache log location */
+
+ if(H5P_get(plist, H5F_ACS_MDC_LOG_LOCATION_NAME, &mdc_log_location) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get mdc log location")
+ if(mdc_log_location != NULL) {
+ size_t len = HDstrlen(mdc_log_location);
+ if(NULL == (f->shared->mdc_log_location = (char *)H5MM_calloc((len + 1) * sizeof(char))))
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, NULL, "can't allocate memory for mdc log file name")
+ HDstrncpy(f->shared->mdc_log_location, mdc_log_location, len);
+ }
+ else
+ f->shared->mdc_log_location = NULL;
+ } /* end block */
+
/* Get object flush callback information */
if(H5P_get(plist, H5F_ACS_OBJECT_FLUSH_CB_NAME, &(f->shared->object_flush)) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, NULL, "can't get object flush cb info")