mirror of https://github.com/apache/cassandra
Avoid incremental compaction on Windows
patch by Josh McKenzie; reviewed by jbellis for CASSANDRA-7365
This commit is contained in:
parent
b4b3d80123
commit
61b13b0e6a
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue