ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [42/43] ignite git commit: IGNITE-3087 - Remove assertion.
Date Thu, 19 May 2016 09:38:15 GMT
IGNITE-3087 - Remove assertion.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/27564aa3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/27564aa3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/27564aa3

Branch: refs/heads/ignite-3163
Commit: 27564aa382b872d43bb93c090e22dc79c040ec65
Parents: 8258209
Author: dkarachentsev <dkarachentsev@gridgain.com>
Authored: Thu May 19 10:06:19 2016 +0300
Committer: dkarachentsev <dkarachentsev@gridgain.com>
Committed: Thu May 19 10:07:11 2016 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheTtlManager.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/27564aa3/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheTtlManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheTtlManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheTtlManager.java
index 657cf8d..4e1fc6d 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheTtlManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheTtlManager.java
@@ -293,9 +293,8 @@ public class GridCacheTtlManager extends GridCacheManagerAdapter {
         @Override public boolean add(EntryWrapper e) {
             boolean res = super.add(e);
 
-            assert res : "Failed to add entry wrapper:"  + e;
-
-            size.increment();
+            if (res)
+                size.increment();
 
             return res;
         }


Mime
View raw message