cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject git commit: Fix off-by-one error in stress
Date Fri, 21 Mar 2014 01:07:21 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 5f2e22055 -> 53e22120d


Fix off-by-one error in stress

patch by Benedict Elliott Smith; reviewed by Aleksey Yeschenko for
CASSANDRA-6883


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

Branch: refs/heads/cassandra-2.1
Commit: 53e22120d0e10d97e372879d48598c19d190951e
Parents: 5f2e220
Author: Benedict Elliott Smith <github@sub.laerad.com>
Authored: Fri Mar 21 03:59:23 2014 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri Mar 21 04:07:08 2014 +0300

----------------------------------------------------------------------
 CHANGES.txt                                                        | 1 +
 .../org/apache/cassandra/stress/settings/OptionDistribution.java   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/53e22120/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 7d3c5d2..7e2ed4d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -26,6 +26,7 @@
  * ByteBuffer write() methods for serializing sstables (CASSANDRA-6781)
  * Proper compare function for CollectionType (CASSANDRA-6783)
  * Update native server to Netty 4 (CASSANDRA-6236)
+ * Fix off-by-one error in stress (CASSANDRA-6883)
 Merged from 2.0:
  * Add uuid() function (CASSANDRA-6473)
  * Omit tombstones from schema digests (CASSANDRA-6862)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/53e22120/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java
b/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java
index b84bbc2..76fa0a9 100644
--- a/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java
+++ b/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java
@@ -334,7 +334,7 @@ class OptionDistribution extends Option
         @Override
         public Distribution get()
         {
-            return new DistributionBoundApache(new UniformRealDistribution(min, max), min,
max);
+            return new DistributionBoundApache(new UniformRealDistribution(min, max + 1),
min, max);
         }
     }
 


Mime
View raw message