ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [07/50] [abbrv] ignite git commit: IGNITE-2781: IGFS: Force "copyOnRead=false" for meta and data caches.
Date Mon, 11 Apr 2016 15:43:23 GMT
IGNITE-2781: IGFS: Force "copyOnRead=false" for meta and data caches.


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

Branch: refs/heads/ignite-1837
Commit: ff5b68ca69050817794ef4b142c955a186e03de9
Parents: 219238f
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Mar 14 10:19:23 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Tue Mar 29 15:12:48 2016 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/internal/IgnitionEx.java    | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ff5b68ca/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java b/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
index 5153fb3..905a625 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java
@@ -1950,6 +1950,15 @@ public class IgnitionEx {
             }
 
             cfg.setCacheConfiguration(cacheCfgs.toArray(new CacheConfiguration[cacheCfgs.size()]));
+
+            // Iterate over IGFS caches and set "copyOnRead" flag to "false". Note that we
do this after cloning
+            // to leave user object unchanged.
+            assert cfg.getCacheConfiguration() != null;
+
+            for (CacheConfiguration ccfg : cfg.getCacheConfiguration()) {
+                if (CU.isIgfsCache(cfg, ccfg.getName()))
+                    ccfg.setCopyOnRead(false);
+            }
         }
 
         /**


Mime
View raw message