Avoid incremental compaction on Windows

patch by Josh McKenzie; reviewed by jbellis for CASSANDRA-7365
This commit is contained in:
Jonathan Ellis 2014-06-12 14:57:12 -05:00
parent b4b3d80123
commit 61b13b0e6a
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2.1.0
* Avoid incremental compaction on Windows (CASSANDRA-7365)
* Fix exception when querying a composite-keyed table with a collection index
(CASSANDRA-7372)
* Use node's host id in place of counter ids (CASSANDRA-7366)

View File

@ -36,6 +36,7 @@ import org.apache.cassandra.db.RowIndexEntry;
import org.apache.cassandra.db.compaction.AbstractCompactedRow;
import org.apache.cassandra.db.compaction.OperationType;
import org.apache.cassandra.utils.CLibrary;
import org.apache.cassandra.utils.FBUtilities;
/**
* Wraps one or more writers as output for rewriting one or more readers: every sstable_preemptive_open_interval_in_mb
@ -158,7 +159,7 @@ public class SSTableRewriter
private void maybeReopenEarly(DecoratedKey key)
{
if (writer.getFilePointer() - currentlyOpenedEarlyAt > preemptiveOpenInterval)
if (FBUtilities.isUnix() && writer.getFilePointer() - currentlyOpenedEarlyAt > preemptiveOpenInterval)
{
if (isOffline)
{