cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [3/3] git commit: apply parent CF compaction settings to secondary index CFs patch by jbellis; reviewed by yukim for CASSANDRA-4280
Date Wed, 23 May 2012 22:18:42 GMT
apply parent CF compaction settings to secondary index CFs
patch by jbellis; reviewed by yukim for CASSANDRA-4280


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

Branch: refs/heads/cassandra-1.1
Commit: a4f06c237f0d7c62d10ce9f2ad0592b202f35917
Parents: 30e78d6
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Wed May 23 17:17:12 2012 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Wed May 23 17:17:12 2012 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a4f06c23/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index c7e3207..55a34ef 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 1.1.1-dev
+ * apply parent CF compaction settings to secondary index CFs (CASSANDRA-4280)
  * preserve commitlog size cap when recycling segments at startup
    (CASSANDRA-4201)
  * (Hadoop) fix split generation regression (CASSANDRA-4259)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/a4f06c23/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 54ef1f1..6dd6b64 100644
--- a/src/java/org/apache/cassandra/config/CFMetaData.java
+++ b/src/java/org/apache/cassandra/config/CFMetaData.java
@@ -340,6 +340,8 @@ public final class CFMetaData
                              .readRepairChance(0.0)
                              .dcLocalReadRepairChance(0.0)
                              .caching(indexCaching)
+                             .compactionStrategyClass(parent.compactionStrategyClass)
+                             .compactionStrategyOptions(parent.compactionStrategyOptions)
                              .reloadSecondaryIndexMetadata(parent);
     }
 


Mime
View raw message