提交 58055e6a 编写于 作者: A Azat Khuzhin

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.
上级 8711f98c
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册