Ildar Absalyamov has submitted this change and it was merged. Change subject: Fix a bug in secondary index entry matter/antimatter reconciliation during upsert ......................................................................
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 <[email protected]> Tested-by: Jenkins <[email protected]> BAD: Jenkins <[email protected]> Integration-Tests: Jenkins <[email protected]> Reviewed-by: abdullah alamoudi <[email protected]> --- M asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMSecondaryUpsertOperatorNodePushable.java 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: abdullah alamoudi: Looks good to me, approved Jenkins: Verified; No violations found; No violations found; Verified 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; } -- To view, visit https://asterix-gerrit.ics.uci.edu/1488 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5d5c4c44f49308757e05bed3a20475abdd3d38e7 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Ildar Absalyamov <[email protected]> Gerrit-Reviewer: Ildar Absalyamov <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Reviewer: abdullah alamoudi <[email protected]>
