You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2020/06/12 14:16:01 UTC

[cassandra] branch trunk updated: Avoid overflow when bloom filter size exceeds 2GB

This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7cdad3c  Avoid overflow when bloom filter size exceeds 2GB
7cdad3c is described below

commit 7cdad3ce61664cf2ffac75b6e537c910e573754c
Author: Zhao Yang <zh...@gmail.com>
AuthorDate: Thu Jun 11 13:05:47 2020 +0800

    Avoid overflow when bloom filter size exceeds 2GB
    
    Patch by Zhao Yang, reviewed by brandonwilliams for CASSANDRA-15869
---
 src/java/org/apache/cassandra/io/util/MemoryOutputStream.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/java/org/apache/cassandra/io/util/MemoryOutputStream.java b/src/java/org/apache/cassandra/io/util/MemoryOutputStream.java
index e6c869d..c984738 100644
--- a/src/java/org/apache/cassandra/io/util/MemoryOutputStream.java
+++ b/src/java/org/apache/cassandra/io/util/MemoryOutputStream.java
@@ -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;
-    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org