Repository: ignite
Updated Branches:
  refs/heads/ignite-3477 ba5f5389f -> c4973889b


inline index offset fix


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

Branch: refs/heads/ignite-3477
Commit: 24a3e9a4f903e379d00adf67f2401bf3b7229e91
Parents: cebc4ff
Author: Konstantin Dudkov <[email protected]>
Authored: Mon Mar 6 15:54:29 2017 +0300
Committer: Konstantin Dudkov <[email protected]>
Committed: Mon Mar 6 15:54:39 2017 +0300

----------------------------------------------------------------------
 .../internal/processors/query/h2/database/InlineIndexHelper.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/24a3e9a4/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/InlineIndexHelper.java
----------------------------------------------------------------------
diff --git 
a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/InlineIndexHelper.java
 
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/InlineIndexHelper.java
index f385146..7381924 100644
--- 
a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/InlineIndexHelper.java
+++ 
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/InlineIndexHelper.java
@@ -229,6 +229,9 @@ public class InlineIndexHelper {
         if (size > 0 && size + 1 > maxSize)
             return null;
 
+        if (maxSize < 1)
+            return null;
+
         int type = PageUtils.getByte(pageAddr, off);
 
         if (type == Value.UNKNOWN)

Reply via email to