Commit 6bfbd6cc authored by Philip Carns's avatar Philip Carns

bug fix: make darshan parser correctly handle partial file records

(resulting from deferred opens) when accumulating file data


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@556 3b7491f3-a168-0410-bf4b-c445ed680a29
parent aa0b26c5
......@@ -558,14 +558,15 @@ void accum_file(struct darshan_file *dfile,
case CP_MODE:
case CP_MEM_ALIGNMENT:
case CP_FILE_ALIGNMENT:
hfile->counters[i] = dfile->counters[i];
if(CP_FILE_PARTIAL(hfile))
hfile->counters[i] = dfile->counters[i];
break;
case CP_SIZE_AT_OPEN:
if (hfile->counters[i] == -1)
{
hfile->counters[i] = dfile->counters[i];
}
if (hfile->counters[i] > dfile->counters[i])
if (hfile->counters[i] > dfile->counters[i] && !CP_FILE_PARTIAL(dfile))
{
hfile->counters[i] = dfile->counters[i];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment