ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [30/50] [abbrv] ignite git commit: IGNITE-2781: IGFS: Force "copyOnRead=false" for meta and data caches.
Date Fri, 18 Mar 2016 01:50:24 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/c53ffa98
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c53ffa98
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c53ffa98

Branch: refs/heads/ignite-2407
Commit: c53ffa98cf491a747a66d532501a806dcb561840
Parents: 2a3a565
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Mar 14 10:19:23 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Mon Mar 14 10:19:23 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/c53ffa98/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 193e28e..4796581 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
@@ -1949,6 +1949,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