cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [7/8] cassandra git commit: Treat existing and non-existing partition the same way
Date Tue, 13 Sep 2016 08:53:02 GMT
Treat existing and non-existing partition the same way


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/8d69cba3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/8d69cba3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/8d69cba3

Branch: refs/heads/12060-3.0-v2
Commit: 8d69cba3cbbd559e73ed09e3384a91be54fe9aac
Parents: f58c351
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Mon Sep 12 11:45:53 2016 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Mon Sep 12 11:50:22 2016 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8d69cba3/src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java b/src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java
index 3af3c35..cf4110c 100644
--- a/src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java
+++ b/src/java/org/apache/cassandra/cql3/statements/CQL3CasRequest.java
@@ -308,9 +308,6 @@ public class CQL3CasRequest implements CASRequest
 
         public boolean appliesTo(FilteredPartition current) throws InvalidRequestException
         {
-            if (current.isEmpty())
-                return conditions.isEmpty();
-
             Row row = current.getRow(clustering);
             for (ColumnCondition.Bound condition : conditions.values())
             {


Mime
View raw message