cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject git commit: Removing caching on SSTR since it breaks Indexes
Date Thu, 30 Aug 2012 16:55:58 GMT
Updated Branches:
  refs/heads/trunk 8a1b93d79 -> 9cd53fba6


Removing caching on SSTR since it breaks Indexes


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

Branch: refs/heads/trunk
Commit: 9cd53fba648ae5a30a181f8a06786f33db95a0fe
Parents: 8a1b93d
Author: Vijay Parthasarathy <vijay2win@gmail.com>
Authored: Thu Aug 30 09:53:08 2012 -0700
Committer: Vijay Parthasarathy <vijay2win@gmail.com>
Committed: Thu Aug 30 09:55:44 2012 -0700

----------------------------------------------------------------------
 .../apache/cassandra/io/sstable/SSTableReader.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9cd53fba/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
index b1c5493..0968e12 100644
--- a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
+++ b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
@@ -169,7 +169,7 @@ public class SSTableReader extends SSTable
         // Check if sstable is created using same partitioner.
         // Partitioner can be null, which indicates older version of sstable or no stats
available.
         // In that case, we skip the check.
-        String partitionerName = DatabaseDescriptor.getPartitionerName();
+        String partitionerName = partitioner.getClass().getCanonicalName();
         if (sstableMetadata.partitioner != null && !partitionerName.equals(sstableMetadata.partitioner))
         {
             logger.warn("Changing paritioner on a existing cluster can cause data loose,
Please verify your partitioner in cassandra.yaml");


Mime
View raw message