提交 27e8cdd3 authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

Fix bug which could generate a NegativeArraySizeException when performing large…

Fix bug which could generate a NegativeArraySizeException when performing large (>40M) row union operations
上级 9d65e189
......@@ -36,7 +36,8 @@ Change Log
JdbcDatabaseMetaData#supportsTransactionIsolationLevel(TRANSACTION_READ_UNCOMMITTED)
should return false
</li><li>Fix bug which could generate deadlocks when multiple connections accessed the same table.
</li><li>Some places in the code were not respecting the value set in the "SET MAX_MEMORY_ROWS x" command
</li><li>Some places in the code were not respecting the value set in the "SET MAX_MEMORY_ROWS x" command
</li><li>Fix bug which could generate a NegativeArraySizeException when performing large (>40M) row union operations
</li></ul>
<h2>Version 1.4.182 Beta (2014-10-17)</h2>
......
......@@ -96,6 +96,10 @@ public abstract class HashBase {
* @param newLevel the new level
*/
protected void reset(int newLevel) {
// can't exceed 30 or we will generate a negative value for the "len" field
if (newLevel > 30) {
newLevel = 30;
}
minSize = size * 3 / 4;
size = 0;
level = newLevel;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论