Repository: cassandra Updated Branches: refs/heads/trunk 49642e7bf -> 74290df23
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/trunk Commit: 53e22120d0e10d97e372879d48598c19d190951e Parents: 5f2e220 Author: Benedict Elliott Smith <[email protected]> Authored: Fri Mar 21 03:59:23 2014 +0300 Committer: Aleksey Yeschenko <[email protected]> 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); } }
