cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [7/8] cassandra git commit: Remove redundant isLive() check on hint write path
Date Sun, 05 Feb 2017 17:09:11 GMT
Remove redundant isLive() check on hint write path

patch by Aleksey Yeschenko; reviewed by Jason Brown for CASSANDRA-12998


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/8fc72a5e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/8fc72a5e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/8fc72a5e

Branch: refs/heads/trunk
Commit: 8fc72a5ebc397e04468ba2de83f06031f038b204
Parents: b6e83fc
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Wed Dec 7 20:55:44 2016 +0000
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Sun Feb 5 17:01:35 2017 +0000

----------------------------------------------------------------------
 src/java/org/apache/cassandra/hints/HintsService.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8fc72a5e/src/java/org/apache/cassandra/hints/HintsService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hints/HintsService.java b/src/java/org/apache/cassandra/hints/HintsService.java
index 1a3a403..f8b8e2d 100644
--- a/src/java/org/apache/cassandra/hints/HintsService.java
+++ b/src/java/org/apache/cassandra/hints/HintsService.java
@@ -159,8 +159,7 @@ public final class HintsService implements HintsServiceMBean
         // we have to make sure that the HintsStore instances get properly initialized -
otherwise dispatch will not trigger
         catalog.maybeLoadStores(hostIds);
 
-        if (hint.isLive())
-            bufferPool.write(hostIds, hint);
+        bufferPool.write(hostIds, hint);
 
         StorageMetrics.totalHints.inc(size(hostIds));
     }


Mime
View raw message