mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Do not overcommit Buffer memory usage
During INSERT the check against existing rows and rows from the INSERT block is performed and if they exceeded threshold the Buffer should be flushed to avoid overcommit, while before this patch the second check (in flushBuffer()) will ignore rows from INSERT block.
This commit is contained in:
parent
8711f98c30
commit
58055e6a94
@ -402,7 +402,7 @@ private:
|
||||
* an exception will be thrown, and new data will not be added to the buffer.
|
||||
*/
|
||||
|
||||
storage.flushBuffer(buffer, true, true /* locked */);
|
||||
storage.flushBuffer(buffer, false /* check_thresholds */, true /* locked */);
|
||||
}
|
||||
|
||||
if (!buffer.first_write_time)
|
||||
|
Loading…
Reference in New Issue
Block a user