jacek-lewandowski commented on code in PR #2777:
URL: https://github.com/apache/cassandra/pull/2777#discussion_r1374314774


##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -511,6 +511,41 @@ else if (conf.commitlog_sync_period.toMilliseconds() != 0)
             logger.debug("Syncing log with a period of {}", 
conf.commitlog_sync_period.toString());
         }
 
+        // Only mmap & Direct-I/O access modes are supported. Standard access 
mode is preassumed if Compressed or Encrypted segment is used.
+        // This ensures default behavior is unchanged.
+        if  (conf.commitlog_disk_access_mode != Config.DiskAccessMode.auto
+             && conf.commitlog_disk_access_mode != Config.DiskAccessMode.legacy

Review Comment:
   out of curiosity, why standard must be used for writing 
compressed/encrypted? Doesn't it write data sequentially anyway?



-- 
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]

Reply via email to