asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mb...@apache.org
Subject asterixdb git commit: ASTERIXDB-1481: BTree Split ArrayIndexOutOfBounds
Date Wed, 15 Jun 2016 16:07:27 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master d1e2a9953 -> fd1d460da


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>


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

Branch: refs/heads/master
Commit: fd1d460da73397de9f44d7b098543f7897844794
Parents: d1e2a99
Author: Michael Blow <mblow@apache.org>
Authored: Wed Jun 15 11:29:36 2016 -0400
Committer: Michael Blow <michael.blow@couchbase.com>
Committed: Wed Jun 15 09:07:03 2016 -0700

----------------------------------------------------------------------
 .../apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/fd1d460d/hyracks-fullstack/hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeNSMLeafFrame.java
----------------------------------------------------------------------
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 class BTreeNSMLeafFrame extends TreeIndexNSMFrame implements IBTreeLeafFr
 
     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());


Mime
View raw message