asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject asterixdb git commit: Fix a bug in secondary index entry matter/antimatter reconciliation during upsert
Date Thu, 09 Feb 2017 01:49:01 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 910303b46 -> ecb045e50


Fix a bug in secondary index entry matter/antimatter reconciliation during upsert

Change-Id: I5d5c4c44f49308757e05bed3a20475abdd3d38e7
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1488
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>


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

Branch: refs/heads/master
Commit: ecb045e5005822c1e0fcec6c692d37460ebe2ab7
Parents: 910303b
Author: Ildar Absalyamov <ildar.absalyamov@gmail.com>
Authored: Mon Feb 6 16:18:11 2017 -0800
Committer: Ildar Absalyamov <ildar.absalyamov@gmail.com>
Committed: Mon Feb 6 20:55:40 2017 -0800

----------------------------------------------------------------------
 .../operators/LSMSecondaryUpsertOperatorNodePushable.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/ecb045e5/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java
index 1d9ceb4..eab9cc7 100644
--- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java
+++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java
@@ -63,10 +63,10 @@ public class LSMSecondaryUpsertOperatorNodePushable extends LSMIndexInsertUpdate
     }
 
     public static boolean equals(byte[] a, int aOffset, int aLength, byte[] b, int bOffset,
int bLength) {
-        if (a.length != b.length) {
+        if (aLength != bLength) {
             return false;
         }
-        for (int i = 0; i < a.length; i++) {
+        for (int i = 0; i < aLength; i++) {
             if (a[aOffset + i] != b[bOffset + i]) {
                 return false;
             }


Mime
View raw message