commit | fd1d460da73397de9f44d7b098543f7897844794 | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Wed Jun 15 11:29:36 2016 -0400 |
committer | Michael Blow <michael.blow@couchbase.com> | Wed Jun 15 09:07:03 2016 -0700 |
tree | 8260e828e2de7bd1b0288bc444c8c00402548872 | |
parent | d1e2a9953420d262737dd2083ea73d8abcf7c955 [diff] |
ASTERIXDB-1481: BTree Split ArrayIndexOutOfBounds Ensure large flag BTree flag is set for large pages. Change-Id: Icf531f6d63da96d3eb6732249bc9a1968866db5e Reviewed-on: https://asterix-gerrit.ics.uci.edu/926 Reviewed-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java b/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java index 406b494..63f516e 100644 --- a/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java +++ b/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java
@@ -304,8 +304,8 @@ public void growCapacity(IExtraPageBlockHelper extraPageBlockHelper, IBufferCache bufferCache, int delta) throws HyracksDataException { + setLargeFlag(true); if (delta <= 0) { - setLargeFlag(true); return; } int deltaPages = (int) Math.ceil((double) delta / bufferCache.getPageSize());