Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/java/org/apache/cassandra/io/util/SequentialWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ protected Throwable doAbort(Throwable accumulate)
}

// TODO: we should specify as a parameter if we permit an existing file or not
private static FileChannel openChannel(File file)
{
return openChannel(file, true);
}

private static FileChannel openChannel(File file, boolean readable)
{
try
Expand Down Expand Up @@ -171,7 +166,7 @@ public SequentialWriter(File file, SequentialWriterOption option)
*/
public SequentialWriter(File file, SequentialWriterOption option, boolean strictFlushing)
{
this(file, true, option, strictFlushing);
this(file, false, option, strictFlushing);
}

public SequentialWriter(File file, boolean readable, SequentialWriterOption option, boolean strictFlushing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.junit.Test;

import org.apache.cassandra.config.DatabaseDescriptor;
import org.apache.cassandra.io.compress.BufferType;

import static org.junit.Assert.*;

Expand Down Expand Up @@ -261,4 +260,4 @@ public void testExistingFileWithReadableFalse() throws IOException
tempFile.tryDelete();
}
}
}
}