cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject cassandra git commit: ninja - correct comment in CommitLogSegment
Date Thu, 08 Jan 2015 17:53:22 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 2b4029a76 -> 39a2410ad


ninja - correct comment in CommitLogSegment


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

Branch: refs/heads/trunk
Commit: 39a2410add2c435ea9b221ebcb73cbca9c0892d0
Parents: 2b4029a
Author: Joshua McKenzie <jmckenzie@apache.org>
Authored: Thu Jan 8 11:52:57 2015 -0600
Committer: Joshua McKenzie <jmckenzie@apache.org>
Committed: Thu Jan 8 11:52:57 2015 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/39a2410a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
index 3383f1e..6b40864 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
@@ -156,7 +156,7 @@ public class CommitLogSegment
 
             // Extend or truncate the file size to the standard segment size as we may have
restarted after a segment
             // size configuration change, leaving "incorrectly" sized segments on disk.
-            // NOTE: while we're using RAF to allow extension of file on disk w/out sparse,
we need to avoid using RAF
+            // NOTE: while we're using RAF to easily adjust file size, we need to avoid using
RAF
             // for grabbing the FileChannel due to FILE_SHARE_DELETE flag bug on windows.
             // See: https://bugs.openjdk.java.net/browse/JDK-6357433 and CASSANDRA-8308
             if (logFile.length() != DatabaseDescriptor.getCommitLogSegmentSize())


Mime
View raw message