commit | ecb045e5005822c1e0fcec6c692d37460ebe2ab7 | [log] [tgz] |
---|---|---|
author | Ildar Absalyamov <ildar.absalyamov@gmail.com> | Mon Feb 06 16:18:11 2017 -0800 |
committer | Ildar Absalyamov <ildar.absalyamov@gmail.com> | Mon Feb 06 20:55:40 2017 -0800 |
tree | 55778d5f5d16960004cffaf23d1b43d1fee23cea | |
parent | 910303b4634f7ced6bde7dc2e6525db880975062 [diff] |
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>
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 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; }