kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c3456ea3ec0fd8b7c486813cbe657938930f002be7c72cfe460975d293aa102a |
|---|---|
| Author | Sylvain Lebresne <sylvain@datastax.com> · 2014-02-26 16:15 +01:00 |
| Committer | Sylvain Lebresne <sylvain@datastax.com> · 2014-02-26 16:15 +01:00 |
| Parents | 7be940daff25 |
2 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -16,6 +16,7 @@ | ||
| 16 | 16 | - [bug] Fix race when multiple connect are done in parallel (JAVA-261) |
| 17 | 17 | - [bug] Don't connect at all to nodes that are ignored by the load balancing |
| 18 | 18 | policy (JAVA-270) |
| 19 | +- [bug] LatencyAwarePolicy.Builder#withScale doesn't set the scale (JAVA-275) | |
| 19 | 20 | |
| 20 | 21 | |
| 21 | 22 | 1.0.5: |
modified driver-core/src/main/java/com/datastax/driver/core/policies/LatencyAwarePolicy.java +1 −0
| @@ -572,6 +572,7 @@ | ||
| 572 | 572 | public Builder withScale(long scale, TimeUnit unit) { |
| 573 | 573 | if (scale <= 0) |
| 574 | 574 | throw new IllegalArgumentException("Invalid scale, must be strictly positive"); |
| 575 | + this.scale = unit.toNanos(scale); | |
| 575 | 576 | return this; |
| 576 | 577 | } |
| 577 | 578 |