ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [1/7] ignite git commit: inline index offset fix
Date Tue, 14 Mar 2017 14:43:08 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3477-master [created] 0bdcbb359


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-master
Commit: 24a3e9a4f903e379d00adf67f2401bf3b7229e91
Parents: cebc4ff
Author: Konstantin Dudkov <kdudkov@ya.ru>
Authored: Mon Mar 6 15:54:29 2017 +0300
Committer: Konstantin Dudkov <kdudkov@ya.ru>
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)


Mime
View raw message