ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [14/28] ignite git commit: Quick fix for cache activate/deactivate.
Date Thu, 27 Apr 2017 15:02:49 GMT
Quick fix for cache activate/deactivate.


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

Branch: refs/heads/ignite-5075-cacheStart
Commit: 8dc3a4cb1f0eb32503a2524fd91d5178843dce6b
Parents: 9f5f57a
Author: devozerov <vozerov@gridgain.com>
Authored: Thu Apr 27 12:33:48 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Thu Apr 27 12:33:48 2017 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheProcessor.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8dc3a4cb/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
index 8e58856..d6225c0 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
@@ -3614,9 +3614,7 @@ public class GridCacheProcessor extends GridProcessorAdapter {
      * @return Descriptor.
      */
     public DynamicCacheDescriptor cacheDescriptor(String name) {
-        assert name != null;
-
-        return registeredCaches.get(name);
+        return name != null ? registeredCaches.get(name) : null;
     }
 
     /**


Mime
View raw message