cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bened...@apache.org
Subject [2/3] cassandra git commit: ninja fix erroneous error message in CASSANDRA-10109
Date Thu, 10 Sep 2015 13:38:31 GMT
ninja fix erroneous error message in CASSANDRA-10109


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

Branch: refs/heads/trunk
Commit: ce0ec43a0c4a72fcf55fa7169957ff906ea5746e
Parents: 967a2cf
Author: Benedict Elliott Smith <benedict@apache.org>
Authored: Thu Sep 10 14:38:07 2015 +0100
Committer: Benedict Elliott Smith <benedict@apache.org>
Committed: Thu Sep 10 14:38:07 2015 +0100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ce0ec43a/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java b/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
index 89d7beb..da6d78d 100644
--- a/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
+++ b/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
@@ -401,7 +401,8 @@ class LogTransaction extends Transactional.AbstractTransactional implements
Tran
                     if (data.verify())
                     {
                         Throwable failure = data.removeUnfinishedLeftovers(null);
-                        logger.error("Failed to remove unfinished transaction leftovers for
log {}", log, failure);
+                        if (failure != null)
+                            logger.error("Failed to remove unfinished transaction leftovers
for log {}", log, failure);
                     }
                     else
                     {


Mime
View raw message