cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [1/6] cassandra git commit: Fix serialized size of DataLimits
Date Sat, 18 Nov 2017 13:18:32 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 f1e850a49 -> eb05025c0
  refs/heads/cassandra-3.11 9ee44db49 -> d2bc37f43
  refs/heads/trunk f1f6ed609 -> da410153e


Fix serialized size of DataLimits

patch by Sylvain Lebresne; reviewed by Jason Brown for CASSANDRA-14057


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/eb05025c
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/eb05025c
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/eb05025c

Branch: refs/heads/cassandra-3.0
Commit: eb05025c0a768241ea61fd86db9a88cfd8f6e93e
Parents: f1e850a
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri Nov 17 15:46:58 2017 +0100
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Sat Nov 18 14:16:42 2017 +0100

----------------------------------------------------------------------
 CHANGES.txt                                     | 1 +
 src/java/org/apache/cassandra/db/TypeSizes.java | 6 ++++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/eb05025c/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index a3c43fd..6c50a3f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.16
+ * Fix serialized size of DataLimits (CASSANDRA-14057)
  * Add flag to allow dropping oversized read repair mutations (CASSANDRA-13975)
  * Fix SSTableLoader logger message (CASSANDRA-14003)
  * Fix repair race that caused gossip to block (CASSANDRA-13849)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/eb05025c/src/java/org/apache/cassandra/db/TypeSizes.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/TypeSizes.java b/src/java/org/apache/cassandra/db/TypeSizes.java
index 6543025..b47e300 100644
--- a/src/java/org/apache/cassandra/db/TypeSizes.java
+++ b/src/java/org/apache/cassandra/db/TypeSizes.java
@@ -28,6 +28,7 @@ public final class TypeSizes
     private TypeSizes(){}
 
     private static final int BOOL_SIZE = 1;
+    private static final int BYTE_SIZE = 1;
     private static final int SHORT_SIZE = 2;
     private static final int INT_SIZE = 4;
     private static final int LONG_SIZE = 8;
@@ -78,6 +79,11 @@ public final class TypeSizes
         return BOOL_SIZE;
     }
 
+    public static int sizeof(byte value)
+    {
+        return BYTE_SIZE;
+    }
+
     public static int sizeof(short value)
     {
         return SHORT_SIZE;


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


Mime
View raw message