ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [39/49] ignite git commit: IGNITE-5301 JVM crashes on H2TreeIndex destroy
Date Fri, 02 Jun 2017 17:13:52 GMT
IGNITE-5301 JVM crashes on H2TreeIndex destroy


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

Branch: refs/heads/ignite-5398
Commit: 74840aef195054e6abd0500d219ad8c3eb92fbd9
Parents: 7737bd5
Author: EdShangGG <eshangareev@gridgain.com>
Authored: Mon May 29 18:27:50 2017 +0300
Committer: EdShangGG <eshangareev@gridgain.com>
Committed: Mon May 29 18:27:50 2017 +0300

----------------------------------------------------------------------
 .../internal/processors/query/h2/database/H2TreeIndex.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/74840aef/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/H2TreeIndex.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/H2TreeIndex.java
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/H2TreeIndex.java
index dcfdec9..8dc3210 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/H2TreeIndex.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/database/H2TreeIndex.java
@@ -371,10 +371,11 @@ public class H2TreeIndex extends GridH2IndexBase {
     @Override public void destroy() {
         try {
             if (cctx.affinityNode()) {
-                if (!cctx.kernalContext().cache().context().database().persistenceEnabled())
+                if (!cctx.kernalContext().cache().context().database().persistenceEnabled())
{
                     tree.destroy();
 
-                cctx.offheap().dropRootPageForIndex(tree.getName());
+                    cctx.offheap().dropRootPageForIndex(tree.getName());
+                }
             }
         }
         catch (IgniteCheckedException e) {


Mime
View raw message