From 5f4ab2f040bc052632755be4e01c28170f4c25a8 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Thu, 18 Mar 2010 19:08:57 +0000 Subject: [PATCH] default write consistency level changed from ZERO to ONE git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.6@924953 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + interface/cassandra.thrift | 8 ++++---- .../gen-java/org/apache/cassandra/thrift/Cassandra.java | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 614e590de8..dccd64b194 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,7 @@ * JMX drain to flush memtables and run through commit log (CASSANDRA-880) * Bootstrapping can skip ranges under the right conditions (CASSANDRA-902) * fix merging row versions in range_slice for CL > ONE (CASSANDRA-884) + * default write ConsistencyLeven chaned from ZERO to ONE 0.6.0-beta3 diff --git a/interface/cassandra.thrift b/interface/cassandra.thrift index 47885d31d1..0b1347cdf9 100644 --- a/interface/cassandra.thrift +++ b/interface/cassandra.thrift @@ -380,7 +380,7 @@ service Cassandra { 3:required ColumnPath column_path, 4:required binary value, 5:required i64 timestamp, - 6:required ConsistencyLevel consistency_level=ZERO) + 6:required ConsistencyLevel consistency_level=ONE) throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te), /** @@ -392,7 +392,7 @@ service Cassandra { void batch_insert(1:required string keyspace, 2:required string key, 3:required map> cfmap, - 4:required ConsistencyLevel consistency_level=ZERO) + 4:required ConsistencyLevel consistency_level=ONE) throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te), /** @@ -404,7 +404,7 @@ service Cassandra { 2:required string key, 3:required ColumnPath column_path, 4:required i64 timestamp, - 5:ConsistencyLevel consistency_level=ZERO) + 5:ConsistencyLevel consistency_level=ONE) throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te), /** @@ -414,7 +414,7 @@ service Cassandra { **/ void batch_mutate(1:required string keyspace, 2:required map>> mutation_map, - 3:required ConsistencyLevel consistency_level=ZERO) + 3:required ConsistencyLevel consistency_level=ONE) throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te), // Meta-APIs -- APIs to get information about the node or cluster, diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java index 091f211ad7..6a5a0eca0b 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java @@ -11215,7 +11215,7 @@ public class Cassandra { } public insert_args() { - this.consistency_level = ConsistencyLevel.ZERO; + this.consistency_level = ConsistencyLevel.ONE; } @@ -12404,7 +12404,7 @@ public class Cassandra { } public batch_insert_args() { - this.consistency_level = ConsistencyLevel.ZERO; + this.consistency_level = ConsistencyLevel.ONE; } @@ -13445,7 +13445,7 @@ public class Cassandra { } public remove_args() { - this.consistency_level = ConsistencyLevel.ZERO; + this.consistency_level = ConsistencyLevel.ONE; } @@ -14539,7 +14539,7 @@ public class Cassandra { } public batch_mutate_args() { - this.consistency_level = ConsistencyLevel.ZERO; + this.consistency_level = ConsistencyLevel.ONE; }