[Darshan-commits] [Darshan] branch, dev-modular, updated. darshan-2.3.1-180-gdbefada
Service Account
git at mcs.anl.gov
Mon Sep 21 10:16:03 CDT 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, dev-modular has been updated
via dbefada8fb0355f45b76124ae1513e375a059b71 (commit)
from 38e0e4be33dc4a4761ed3915311043b71aedfbfb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dbefada8fb0355f45b76124ae1513e375a059b71
Author: Shane Snyder <ssnyder at mcs.anl.gov>
Date: Mon Sep 21 10:15:41 2015 -0500
handle case of empty record map in log file
-----------------------------------------------------------------------
Summary of changes:
darshan-util/darshan-logutils.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Diff of changes:
diff --git a/darshan-util/darshan-logutils.c b/darshan-util/darshan-logutils.c
index 25725ac..a4483d7 100644
--- a/darshan-util/darshan-logutils.c
+++ b/darshan-util/darshan-logutils.c
@@ -452,6 +452,13 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
int read_req_sz;
int buf_remaining = 0;
+ /* just return if there is no record mapping data */
+ if(fd->rec_map.len == 0)
+ {
+ *hash = NULL;
+ return(0);
+ }
+
/* default to hash buffer twice as big as default compression buf */
hash_buf = malloc(DARSHAN_DEF_COMP_BUF_SZ * 2);
if(!hash_buf)
hooks/post-receive
--
More information about the Darshan-commits
mailing list