diff --git a/CHANGES.txt b/CHANGES.txt index 72e62884f9..da81b66069 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 1.1.11 + * add tmp flag to Descriptor hashcode (CASSANDRA-4021) * fix logging of "Found table data in data directories" when only system tables are present (CASSANDRA-5289) * cli: Add JMX authentication support (CASSANDRA-5080) diff --git a/src/java/org/apache/cassandra/io/sstable/Descriptor.java b/src/java/org/apache/cassandra/io/sstable/Descriptor.java index f4663b735c..d2a9f466a6 100644 --- a/src/java/org/apache/cassandra/io/sstable/Descriptor.java +++ b/src/java/org/apache/cassandra/io/sstable/Descriptor.java @@ -100,7 +100,7 @@ public class Descriptor this.cfname = cfname; this.generation = generation; temporary = temp; - hashCode = Objects.hashCode(directory, generation, ksname, cfname); + hashCode = Objects.hashCode(directory, generation, ksname, cfname, temp); hasStringsInBloomFilter = version.compareTo("c") < 0; hasIntRowSize = version.compareTo("d") < 0; @@ -266,7 +266,7 @@ public class Descriptor if (!(o instanceof Descriptor)) return false; Descriptor that = (Descriptor)o; - return that.directory.equals(this.directory) && that.generation == this.generation && that.ksname.equals(this.ksname) && that.cfname.equals(this.cfname); + return that.directory.equals(this.directory) && that.generation == this.generation && that.ksname.equals(this.ksname) && that.cfname.equals(this.cfname) && that.temporary == this.temporary; } @Override