cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [4/5] git commit: add debug messages + cleanup
Date Wed, 23 May 2012 21:34:05 GMT
add debug messages + cleanup


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

Branch: refs/heads/trunk
Commit: 934570398108b4e3732f59c5d28d245ca2502cd9
Parents: c37fe54
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue May 1 10:41:02 2012 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Wed May 23 16:32:53 2012 -0500

----------------------------------------------------------------------
 .../cassandra/db/commitlog/CommitLogAllocator.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/93457039/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java b/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
index 0359c58..153140b 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java
@@ -273,7 +273,9 @@ public class CommitLogAllocator
      */
     private boolean isCapExceeded()
     {
-        return size.get() > DatabaseDescriptor.getTotalCommitlogSpaceInMB() * 1024 * 1024;
+        long currentSize = size.get();
+        logger.debug("Total active commitlog segment space used is {}", currentSize);
+        return currentSize > DatabaseDescriptor.getTotalCommitlogSpaceInMB() * 1024 *
1024;
     }
 
     /**


Mime
View raw message