cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject git commit: ninja relocate crc_check_chance removal from options list
Date Fri, 07 Dec 2012 17:52:06 GMT
Updated Branches:
  refs/heads/cassandra-1.2.0 8581be8a2 -> 248d6266e


ninja relocate crc_check_chance removal from options list


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

Branch: refs/heads/cassandra-1.2.0
Commit: 248d6266e67bae97a0a6f27776645768704df201
Parents: 8581be8
Author: Jake Luciani <jluciani@bluemountaincapital.com>
Authored: Fri Dec 7 12:50:49 2012 -0500
Committer: Jake Luciani <jluciani@bluemountaincapital.com>
Committed: Fri Dec 7 12:51:53 2012 -0500

----------------------------------------------------------------------
 .../io/compress/CompressionParameters.java         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/248d6266/src/java/org/apache/cassandra/io/compress/CompressionParameters.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/compress/CompressionParameters.java b/src/java/org/apache/cassandra/io/compress/CompressionParameters.java
index df077ac..93e150f 100644
--- a/src/java/org/apache/cassandra/io/compress/CompressionParameters.java
+++ b/src/java/org/apache/cassandra/io/compress/CompressionParameters.java
@@ -56,7 +56,6 @@ public class CompressionParameters
         String chunkLength = options.get(CHUNK_LENGTH_KB);
         options.remove(SSTABLE_COMPRESSION);
         options.remove(CHUNK_LENGTH_KB);
-        options.remove(CRC_CHECK_CHANCE);
         CompressionParameters cp = new CompressionParameters(sstableCompressionClass, parseChunkLength(chunkLength),
options);
         cp.validate();
         return cp;
@@ -78,6 +77,7 @@ public class CompressionParameters
         this.chunkLength = chunkLength;
         this.otherOptions = otherOptions;
         String chance = otherOptions.get(CRC_CHECK_CHANCE);
+        otherOptions.remove(CRC_CHECK_CHANCE);
         this.crcChance = (chance == null) ? DEFAULT_CRC_CHECK_CHANCE : Double.parseDouble(chance);
     }
 


Mime
View raw message