Skip to content

Commit 0feb87f

Browse files
committed
CNDB-15032: set SequentialWriter channel to write-only by default
1 parent f2176f3 commit 0feb87f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/java/org/apache/cassandra/io/util/SequentialWriter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ protected Throwable doAbort(Throwable accumulate)
104104
}
105105

106106
// TODO: we should specify as a parameter if we permit an existing file or not
107-
private static FileChannel openChannel(File file)
108-
{
109-
return openChannel(file, true);
110-
}
111-
112107
private static FileChannel openChannel(File file, boolean readable)
113108
{
114109
try
@@ -171,7 +166,7 @@ public SequentialWriter(File file, SequentialWriterOption option)
171166
*/
172167
public SequentialWriter(File file, SequentialWriterOption option, boolean strictFlushing)
173168
{
174-
this(file, true, option, strictFlushing);
169+
this(file, false, option, strictFlushing);
175170
}
176171

177172
public SequentialWriter(File file, boolean readable, SequentialWriterOption option, boolean strictFlushing)

0 commit comments

Comments
 (0)