This is an automated email from the ASF dual-hosted git repository.

av pushed a commit to branch ignite-eviction-debug
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit b2c083564fb3b48ebe87042e0ed442dc0af3a74d
Author: Anton Vinogradov <[email protected]>
AuthorDate: Tue Dec 24 16:54:01 2019 +0300

    IGNITE-12272 bench
    
    Signed-off-by: Anton Vinogradov <[email protected]>
---
 .../cache/distributed/dht/topology/GridDhtLocalPartition.java          | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
index 3ca3a1b..429b271 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
@@ -482,8 +482,7 @@ public class GridDhtLocalPartition extends 
GridCacheConcurrentMapImpl implements
 
             int reservations = getReservations(state);
 
-            if (reservations == 0)
-                return;
+            assert reservations > 0;
 
             assert getPartState(state) != EVICTED : this;
 

Reply via email to