samueldlightfoot commented on code in PR #4178:
URL: https://github.com/apache/cassandra/pull/4178#discussion_r2758163710
##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -1763,7 +1780,7 @@ private static Pair<DiskAccessMode, Boolean>
resolveCommitLogWriteDiskAccessMode
File commitLogLocationDir = new File(commitLogLocation);
PathUtils.createDirectoriesIfNotExists(commitLogLocationDir.toPath());
- directIOSupported =
FileUtils.getBlockSize(commitLogLocationDir) > 0;
+ directIOSupported =
FileUtils.isDirectIOSupported(commitLogLocationDir);
Review Comment:
To ensure the direct IO compatibility checks are consistent throughout
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]