File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
driver-core/src/main/java/com/datastax/driver/core Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1111- [ bug] JAVA-1924: StatementWrapper setters should return the wrapping statement.
1212- [ new feature] JAVA-1532: Add Codec support for Java 8's LocalDateTime and ZoneId.
1313- [ improvement] JAVA-1786: Use Google code formatter.
14+ - [ bug] JAVA-1871: Change LOCAL\_ SERIAL.isDCLocal() to return true.
1415
1516Merged from 3.5.x:
1617
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ static ConsistencyLevel fromCode(int code) {
5757 /**
5858 * Whether or not this consistency level applies to the local data-center only.
5959 *
60- * @return whether this consistency level is {@code LOCAL_ONE} or {@code LOCAL_QUORUM}.
60+ * @return whether this consistency level is {@code LOCAL_ONE}, {@code LOCAL_QUORUM}, or {@code
61+ * LOCAL_SERIAL}.
6162 */
6263 public boolean isDCLocal () {
63- return this == LOCAL_ONE || this == LOCAL_QUORUM ;
64+ return this == LOCAL_ONE || this == LOCAL_QUORUM || this == LOCAL_SERIAL ;
6465 }
6566
6667 /**
Original file line number Diff line number Diff line change 33The purpose of this guide is to detail changes made by successive
44versions of the Java driver.
55
6+ ### 3.6.0
7+
8+ 1 . ` ConsistencyLevel.LOCAL_SERIAL.isDCLocal() ` now returns true. In driver
9+ code, ` isDCLocal() ` is only used when evaluating a Statement's
10+ ConsistencyLevel (which does not include Serial CLs), but as a matter of
11+ correctness this was updated.
12+
613### 3.5.0
714
8151 . The ` DowngradingConsistencyRetryPolicy ` is now deprecated, see [ JAVA-1752] .
You can’t perform that action at this time.
0 commit comments