IGNITE-544 - Fixing tests.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/216f8cbd Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/216f8cbd Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/216f8cbd Branch: refs/heads/ignite-341 Commit: 216f8cbd6dbd7b4370b3c9b1ccd6623a4b0975cd Parents: b7d5886 Author: Alexey Goncharuk <agoncha...@gridgain.com> Authored: Tue Mar 24 14:34:15 2015 -0700 Committer: Alexey Goncharuk <agoncha...@gridgain.com> Committed: Tue Mar 24 14:34:15 2015 -0700 ---------------------------------------------------------------------- .../processors/cache/distributed/dht/GridDhtLockFuture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/216f8cbd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java index 220b0f4..c02543c 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java @@ -934,7 +934,7 @@ public final class GridDhtLockFuture<K, V> extends GridCompoundIdentityFuture<Bo * */ private void loadMissingFromStore() { - if (cctx.loadPreviousValue() && cctx.readThrough() && needReturnValue) { + if (cctx.loadPreviousValue() && cctx.readThrough() && (needReturnValue || read)) { final Map<KeyCacheObject, GridDhtCacheEntry> loadMap = new LinkedHashMap<>(); final GridCacheVersion ver = version();