We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e841b9 commit edc6e32Copy full SHA for edc6e32
1 file changed
src/RecordComponent.cpp
@@ -488,13 +488,17 @@ void RecordComponent::flush(
488
{
489
return;
490
}
491
- if (access::readOnly(IOHandler()->m_frontendAccess) &&
492
- flush_level::global_flushpoint(flushParams.flushLevel))
+ if (access::readOnly(IOHandler()->m_frontendAccess))
493
494
- while (!rc.m_chunks.empty())
+ // sic! this needs to be a separate if term, otherwise flushes may
+ // wrongly jump into the write branch below
495
+ if (flush_level::global_flushpoint(flushParams.flushLevel))
496
- IOHandler()->enqueue(rc.m_chunks.front());
497
- rc.m_chunks.pop();
+ while (!rc.m_chunks.empty())
498
+ {
499
+ IOHandler()->enqueue(rc.m_chunks.front());
500
+ rc.m_chunks.pop();
501
+ }
502
503
504
else
0 commit comments