From c9df3bf7732bb1878082ce3ed4d55830a8bd62bd Mon Sep 17 00:00:00 2001 From: Norbert Podhorszki Date: Wed, 2 Sep 2020 08:31:01 -0400 Subject: [PATCH] Fix StreamReader reading step by step. It only read one block if index and never updated. --- source/adios2/engine/bp4/BP4Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;