ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [26/39] ignite git commit: ignite-1.4 Fixed start caches from Visor.
Date Tue, 08 Sep 2015 07:26:39 GMT
ignite-1.4 Fixed start caches from Visor.


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

Branch: refs/heads/ignite-1093-2
Commit: e35aa50b6b06ebe27f85b8fdef0815b822e477da
Parents: a58a16a
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Mon Sep 7 10:45:11 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Mon Sep 7 10:45:11 2015 +0700

----------------------------------------------------------------------
 .../ignite/internal/visor/cache/VisorCacheStartTask.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e35aa50b/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheStartTask.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheStartTask.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheStartTask.java
index 75cd1a9..758f39a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheStartTask.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheStartTask.java
@@ -139,12 +139,12 @@ public class VisorCacheStartTask extends
                 if (arg.near) {
                     NearCacheConfiguration nearCfg = Ignition.loadSpringBean(bais, "nearCacheConfiguration");
 
-                    ignite.createNearCache(VisorTaskUtils.unescapeName(arg.name()), nearCfg);
+                    ignite.getOrCreateNearCache(VisorTaskUtils.unescapeName(arg.name()),
nearCfg);
                 }
                 else {
                     CacheConfiguration cacheCfg = Ignition.loadSpringBean(bais, "cacheConfiguration");
 
-                    ignite.createCache(cacheCfg);
+                    ignite.getOrCreateCache(cacheCfg);
                 }
             }
             catch (IOException e) {
@@ -159,4 +159,4 @@ public class VisorCacheStartTask extends
             return S.toString(VisorCacheStartJob.class, this);
         }
     }
-}
\ No newline at end of file
+}


Mime
View raw message