cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [1/2] git commit: make LZ4 the default compressor
Date Mon, 11 Feb 2013 19:48:01 GMT
make LZ4 the default compressor


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

Branch: refs/heads/trunk
Commit: 440987ed5dbdc5511f470a542a6fcad0a734ce94
Parents: c3f9ee7
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Mon Feb 11 00:00:26 2013 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Mon Feb 11 13:47:56 2013 -0600

----------------------------------------------------------------------
 .../org/apache/cassandra/config/CFMetaData.java    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/440987ed/src/java/org/apache/cassandra/config/CFMetaData.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/config/CFMetaData.java b/src/java/org/apache/cassandra/config/CFMetaData.java
index 734fed5..1def0e2 100644
--- a/src/java/org/apache/cassandra/config/CFMetaData.java
+++ b/src/java/org/apache/cassandra/config/CFMetaData.java
@@ -52,6 +52,7 @@ import org.apache.cassandra.exceptions.InvalidRequestException;
 import org.apache.cassandra.exceptions.RequestValidationException;
 import org.apache.cassandra.exceptions.SyntaxException;
 import org.apache.cassandra.io.compress.CompressionParameters;
+import org.apache.cassandra.io.compress.LZ4Compressor;
 import org.apache.cassandra.io.compress.SnappyCompressor;
 import org.apache.cassandra.io.sstable.Descriptor;
 import org.apache.cassandra.thrift.IndexType;
@@ -86,7 +87,7 @@ public final class CFMetaData
     public final static boolean DEFAULT_POPULATE_IO_CACHE_ON_FLUSH = false;
 
     // Note that this is the default only for user created tables
-    public final static String DEFAULT_COMPRESSOR = SnappyCompressor.isAvailable() ? SnappyCompressor.class.getCanonicalName()
: null;
+    public final static String DEFAULT_COMPRESSOR = LZ4Compressor.class.getCanonicalName();
 
     @Deprecated
     public static final CFMetaData OldStatusCf = newSystemMetadata(Table.SYSTEM_KS, SystemTable.OLD_STATUS_CF,
0, "unused", BytesType.instance, null);


Mime
View raw message