Permalink
Browse files

Merge pull request #652 from chaordic/local_one

Add support to LOCAL_ONE consistency level
  • Loading branch information...
2 parents b7a7041 + 504b60f commit 131782651e75c8cc078562872132a956ff8c056e @zznate zznate committed Jan 31, 2014
View
@@ -16,6 +16,8 @@ Fix for issue 600: critical bug in CQL version selection (@malexejev)
Modify retryDownedHosts() to only delete hosts not in the ring if autoDiscoverHosts is true (@jancona)
Fix all hosts down check (@jancona)
don't use an iterator just to get item 0 of a List (@mebigfatguy)
+Upgrade Cassandra dependencies to 1.2.11 (@pauloricardomg)
+Add support to LOCAL_ONE consistency level (@pauloricardomg)
1.1-4
=====
@@ -33,11 +33,13 @@ public static ConsistencyLevel consistencyLevel(HConsistencyLevel c) {
return ConsistencyLevel.EACH_QUORUM;
case LOCAL_QUORUM:
return ConsistencyLevel.LOCAL_QUORUM;
+ case LOCAL_ONE:
+ return ConsistencyLevel.LOCAL_ONE;
default:
throw new RuntimeException("Unregornized consistency level " + c);
}
}
-
+
/**
* Converts a list of ColumnOrSuperColumn to Column
* @param columns
@@ -50,5 +52,5 @@ public static ConsistencyLevel consistencyLevel(HConsistencyLevel c) {
}
return list;
}
-
+
}
@@ -7,5 +7,5 @@
* @author zznate
*/
public enum HConsistencyLevel {
- ONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUM;
+ ONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUM, LOCAL_ONE;
}
View
@@ -389,7 +389,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Dependency versioning-->
- <cassandra.version>1.2.5</cassandra.version>
+ <cassandra.version>1.2.11</cassandra.version>
<org.springframework.version>3.0.6.RELEASE</org.springframework.version>
<slf4j.version>1.6.1</slf4j.version>
<!-- Maven plugin versioning -->

0 comments on commit 1317826

Please sign in to comment.