Sunny-Island commented on a change in pull request #2742:
URL: https://github.com/apache/bookkeeper/pull/2742#discussion_r689234932



##########
File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/JournalChannel.java
##########
@@ -143,27 +148,32 @@
     private JournalChannel(File journalDirectory, long logId,
                            long preAllocSize, int writeBufferSize, int 
journalAlignSize,
                            long position, boolean fRemoveFromPageCache,
-                           int formatVersionToWrite, 
Journal.BufferedChannelBuilder bcBuilder) throws IOException {
+                           int formatVersionToWrite, 
Journal.BufferedChannelBuilder bcBuilder,
+                           ServerConfiguration configuration) throws 
IOException {
         this.journalAlignSize = journalAlignSize;
         this.zeros = ByteBuffer.allocate(journalAlignSize);
         this.preAllocSize = preAllocSize - preAllocSize % journalAlignSize;
         this.fRemoveFromPageCache = fRemoveFromPageCache;
+        this.configuration = configuration;
+
         File fn = new File(journalDirectory, Long.toHexString(logId) + ".txn");
+        FileChannelProvider provider;
+        provider = 
FileChannelProvider.newProvider(configuration.getJournalChannelProvider());

Review comment:
       ok




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


Reply via email to