summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2014-03-17 02:33:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2014-03-17 02:33:39 (GMT)
commitb791aea50fb7f555ad75ca5c95e9fad227c12722 (patch)
tree1a3131ec7af29d3324642215a3182330724c2c80
parent9c4cfb87e476f62584e065d3478fcc86e94ec815 (diff)
downloadhdf5-b791aea50fb7f555ad75ca5c95e9fad227c12722.zip
hdf5-b791aea50fb7f555ad75ca5c95e9fad227c12722.tar.gz
hdf5-b791aea50fb7f555ad75ca5c95e9fad227c12722.tar.bz2
[svn-r24806] Fixes a parallel bug in the new logging functionality.
Tested on jam w/ parallel.
-rw-r--r--src/H5C.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 87f6444..8fb0f34 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -70,13 +70,14 @@
*
**************************************************************************/
+#define H5AC_PACKAGE /*suppress error about including H5ACpkg */
#define H5C_PACKAGE /*suppress error about including H5Cpkg */
#define H5F_PACKAGE /*suppress error about including H5Fpkg */
#include "H5private.h" /* Generic Functions */
#ifdef H5_HAVE_PARALLEL
-#include "H5ACprivate.h" /* Metadata cache */
+#include "H5ACpkg.h" /* Metadata cache */
#endif /* H5_HAVE_PARALLEL */
#include "H5Cpkg.h" /* Cache */
#include "H5Dprivate.h" /* Dataset functions */
@@ -2623,6 +2624,9 @@ herr_t
H5C_set_up_logging(H5C_t *cache_ptr, const char log_location[],
hbool_t start_immediately)
{
+#ifdef H5_HAVE_PARALLEL
+ H5AC_aux_t *aux_ptr = NULL;
+#endif /*H5_HAVE_PARALLEL*/
char *file_name;
size_t n_chars;
herr_t ret_value = SUCCEED; /* Return value */
@@ -2661,10 +2665,9 @@ H5C_set_up_logging(H5C_t *cache_ptr, const char log_location[],
#ifdef H5_HAVE_PARALLEL
/* Add the rank to the log file name when MPI is in use */
-
aux_ptr = (H5AC_aux_t *)(cache_ptr->aux_ptr);
- if(NULL == cache_ptr->aux_ptr) {
+ if(NULL == aux_ptr) {
HDsnprintf(file_name, n_chars, "%s", log_location);
}
else {