cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Fix bad default for min/max timestamp in SSTableMetadata
Date Mon, 25 Mar 2013 14:28:33 GMT
Updated Branches:
  refs/heads/cassandra-1.1 0e0379005 -> b4d26bb4e


Fix bad default for min/max timestamp in SSTableMetadata

patch by slebresne; reviewed by jasobrown for CASSANDRA-5372


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

Branch: refs/heads/cassandra-1.1
Commit: b4d26bb4e417ef1d0ac02955eac041489fa5b508
Parents: 0e03790
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Mon Mar 25 15:25:08 2013 +0100
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Mon Mar 25 15:25:08 2013 +0100

----------------------------------------------------------------------
 CHANGES.txt                                        |    1 +
 .../cassandra/io/sstable/SSTableMetadata.java      |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b4d26bb4/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 010bdc0..0580d15 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -10,6 +10,7 @@
  * Fix race when initializing ColumnFamilyStore (CASSANDRA-5350)
  * Add UseTLAB JVM flag (CASSANDRA-5361)
  * cli: Quote ks and cf names in schema output when needed (CASSANDRA-5052)
+ * Fix bad default for min/max timestamp in SSTableMetadata (CASSANDRA-5372)
 
 
 1.1.10

http://git-wip-us.apache.org/repos/asf/cassandra/blob/b4d26bb4/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java b/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
index 99ced30..64555a0 100644
--- a/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
+++ b/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
@@ -62,7 +62,7 @@ public class SSTableMetadata
         this(defaultRowSizeHistogram(),
              defaultColumnCountHistogram(),
              ReplayPosition.NONE,
-             Long.MIN_VALUE,
+             Long.MAX_VALUE,
              Double.MIN_VALUE,
              null,
              Collections.<Integer>emptySet());
@@ -223,7 +223,7 @@ public class SSTableMetadata
                 // make sure we don't omit replaying something that we should.  see CASSANDRA-4782
                 replayPosition = ReplayPosition.NONE;
             }
-            long maxTimestamp = desc.containsTimestamp() ? dis.readLong() : Long.MIN_VALUE;
+            long maxTimestamp = desc.containsTimestamp() ? dis.readLong() : Long.MAX_VALUE;
             if (!desc.tracksMaxTimestamp) // see javadoc to Descriptor.containsTimestamp
                 maxTimestamp = Long.MAX_VALUE;
             double compressionRatio = desc.hasCompressionRatio


Mime
View raw message