Skip to content

Commit b1e2583

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected Throwable doAbort(Throwable accumulate)
106106
// TODO: we should specify as a parameter if we permit an existing file or not
107107
private static FileChannel openChannel(File file)
108108
{
109-
return openChannel(file, true);
109+
return openChannel(file, false);
110110
}
111111

112112
private static FileChannel openChannel(File file, boolean readable)
@@ -171,7 +171,7 @@ public SequentialWriter(File file, SequentialWriterOption option)
171171
*/
172172
public SequentialWriter(File file, SequentialWriterOption option, boolean strictFlushing)
173173
{
174-
this(file, true, option, strictFlushing);
174+
this(file, false, option, strictFlushing);
175175
}
176176

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

0 commit comments

Comments
 (0)