# GG-9829: Review.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2ff63c2a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2ff63c2a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2ff63c2a Branch: refs/heads/ignite-gg-9829 Commit: 2ff63c2ad218e1ac2139cfcc7b9c08682853ba02 Parents: a6e6cb4 Author: vozerov-gridgain <voze...@gridgain.com> Authored: Wed Apr 8 15:59:10 2015 +0300 Committer: vozerov-gridgain <voze...@gridgain.com> Committed: Wed Apr 8 15:59:10 2015 +0300 ---------------------------------------------------------------------- .../internal/processors/cache/GridCacheAdapter.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2ff63c2a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java index 302d92c..5ade136 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java @@ -3467,17 +3467,18 @@ public abstract class GridCacheAdapter<K, V> implements GridCache<K, V>, ctx.store().loadCache(c, args); c.onDone(); - } finally { + } + finally { ldr.closeEx(false); } - } else { + } + else { // Version for all loaded entries. final GridCacheVersion ver0 = ctx.versions().nextForLoad(); ctx.store().loadCache(new CIX3<KeyCacheObject, Object, GridCacheVersion>() { - @Override - public void applyx(KeyCacheObject key, Object val, @Nullable GridCacheVersion ver) - throws IgniteException { + @Override public void applyx(KeyCacheObject key, Object val, @Nullable GridCacheVersion ver) + throws IgniteException { assert ver == null; long ttl = CU.ttlForLoad(plc);