Added initialization of 'storeKeepBinary' flag for cache configurations received on discovery.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d2f84d13 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d2f84d13 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d2f84d13 Branch: refs/heads/ignite-2324 Commit: d2f84d1312e8bc22ad43b2e9076b881f0644d509 Parents: ba93717 Author: sboikov <[email protected]> Authored: Thu Jan 21 11:45:27 2016 +0300 Committer: sboikov <[email protected]> Committed: Thu Jan 21 11:45:27 2016 +0300 ---------------------------------------------------------------------- .../ignite/internal/processors/cache/GridCacheProcessor.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/d2f84d13/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 16dfa7f..7e165e0 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 @@ -1899,6 +1899,13 @@ public class GridCacheProcessor extends GridProcessorAdapter { } else { for (DynamicCacheChangeRequest req : batch.requests()) { + if (req.startCacheConfiguration() != null) { + CacheConfiguration ccfg = req.startCacheConfiguration(); + + if (ccfg.isStoreKeepBinary() == null) + ccfg.setStoreKeepBinary(CacheConfiguration.DFLT_STORE_KEEP_BINARY); + } + if (req.template()) { CacheConfiguration ccfg = req.startCacheConfiguration();
