mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
Fix segfault in CascadeWriteBuffer::getResultBuffers()
This commit is contained in:
parent
9f425ebe73
commit
2539983728
@ -56,6 +56,9 @@ void CascadeWriteBuffer::nextImpl()
|
||||
|
||||
CascadeWriteBuffer::WriteBufferPtrs CascadeWriteBuffer::getResultBuffers()
|
||||
{
|
||||
if (!curr_buffer)
|
||||
return {};
|
||||
|
||||
/// Sync position with underlying buffer before invalidating
|
||||
curr_buffer->position() = position();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user