Merge branch 'cassandra-1.2' into cassandra-2.0

This commit is contained in:
Aleksey Yeschenko 2014-05-29 19:04:01 +03:00
commit 824ed37fcc
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@
* Add option to do more aggressive tombstone compactions (CASSANDRA-6563)
* Don't try to compact already-compacting files in HHOM (CASSANDRA-7288)
* Add authentication support to shuffle (CASSANDRA-6484)
Merged from 1.2:
* Fix availability validation for LOCAL_ONE CL (CASSANDRA-7319)
2.0.8

View File

@ -252,6 +252,10 @@ public enum ConsistencyLevel
case ANY:
// local hint is acceptable, and local node is always live
break;
case LOCAL_ONE:
if (countLocalEndpoints(liveEndpoints) == 0)
throw new UnavailableException(this, 1, 0);
break;
case LOCAL_QUORUM:
int localLive = countLocalEndpoints(liveEndpoints);
if (localLive < blockFor)