Merge branch 'cassandra-5.0' into trunk

* cassandra-5.0:
  Make Commitlog flush data safely in Direct IO mode
This commit is contained in:
Maxwell Guo 2025-06-17 23:26:54 +08:00
commit 9a3fda57cd
2 changed files with 7 additions and 1 deletions

View File

@ -199,6 +199,7 @@
* Add the ability to disable bulk loading of SSTables (CASSANDRA-18781)
* Clean up obsolete functions and simplify cql_version handling in cqlsh (CASSANDRA-18787)
Merged from 5.0:
* Make Commitlog flush data safely in Direct IO mode (CASSANDRA-20692)
* Get SAI MemtableIndex refs before SSTableIndex refs at query time (CASSANDRA-20709)
* Fix MAX_SEGMENT_SIZE < chunkSize in MmappedRegions::updateState (CASSANDRA-20636)
* Full Java 17 support (CASSANDRA-20681)

View File

@ -177,7 +177,12 @@ public class DirectIOSegment extends CommitLogSegment
public DirectIOSegment build()
{
return new DirectIOSegment(segmentManager,
path -> FileChannel.open(path, StandardOpenOption.WRITE, StandardOpenOption.READ, StandardOpenOption.CREATE, ExtendedOpenOption.DIRECT),
path -> FileChannel.open(path,
StandardOpenOption.WRITE,
StandardOpenOption.READ,
StandardOpenOption.CREATE,
StandardOpenOption.DSYNC,
ExtendedOpenOption.DIRECT),
fsBlockSize);
}