Commit 7cdad3ce authored by Zhao Yang's avatar Zhao Yang Committed by Brandon Williams

Avoid overflow when bloom filter size exceeds 2GB

Patch by Zhao Yang, reviewed by brandonwilliams for CASSANDRA-15869
parent be572f27
......@@ -27,7 +27,7 @@ public class MemoryOutputStream extends OutputStream
{
private final Memory mem;
private int position = 0;
private long position = 0;
public MemoryOutputStream(Memory mem)
{
......@@ -45,9 +45,4 @@ public class MemoryOutputStream extends OutputStream
mem.setBytes(position, b, off, len);
position += len;
}
public int position()
{
return position;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment