Skip to content
Snippets Groups Projects
Commit 9ef2b777 authored by Stéphane Poirier's avatar Stéphane Poirier
Browse files

Write timer was never restarted after first expiration

parent 6027f5b0
Branches
Tags
1 merge request!2HDF5 1.14.3
......@@ -2013,10 +2013,13 @@ void DatasetWriter::PushData(const void *pData, std::size_t nDataCount, bool bNo
m_mbData.buf_len() / (1024*1024) > m_usMaxMB || // Buffer full
(m_nDataItemCount - m_nWrittenCount) >= (yat::uint32)m_shapeMatrix[m_shapeMatrix.size() - 1] || // Enough data
(!m_bUnlimited && yat::uint64(m_nDataItemCount * m_ulDataItemSize) >= m_ui64TotalSize ) )
// Cache limit size reached or dataset fully completed
{
if( m_tmWriteTimeout.enabled() )
m_tmWriteTimeout.restart();
Flush(call_on_flush);
}
}
}
//------------------------------------------------------------------------------
// DatasetWriter::CreateDataset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment