Skip to content

Commit

Permalink
Merge pull request #2450 from pnorbert/fix-streamreader
Browse files Browse the repository at this point in the history
Fix StreamReader reading step by step. It only read one block of inde…
  • Loading branch information
pnorbert authored Sep 2, 2020
2 parents b2efa2b + c9df3bf commit 36754c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adios2/engine/bp4/BP4Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ size_t BP4Reader::UpdateBuffer(const TimePoint &timeoutInstant,
m_MDFileAbsolutePos = m_MDFileAlreadyReadSize;
m_MDFileAlreadyReadSize = expectedMinFileSize;

m_MDIndexFileAlreadyReadSize = idxFileSize;
m_MDIndexFileAlreadyReadSize += newIdxSize;

sizes[0] = newIdxSize;
sizes[1] = m_MDFileAlreadyReadSize;
Expand Down

0 comments on commit 36754c3

Please sign in to comment.