diff --git a/source/adios2/engine/bp4/BP4Reader.cpp b/source/adios2/engine/bp4/BP4Reader.cpp index c24bb03105..ed3a276bfe 100644 --- a/source/adios2/engine/bp4/BP4Reader.cpp +++ b/source/adios2/engine/bp4/BP4Reader.cpp @@ -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;