mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
Merge pull request #72834 from ClickHouse/fix-segfault-in-cascade-write-buffer
Fix segfault in CascadeWriteBuffer::getResultBuffers()
This commit is contained in:
commit
8b0d29241e
@ -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