zhouxinyu commented on a change in pull request #198: [ROCKETMQ-321] Fix 
deleting files in the middle
URL: https://github.com/apache/rocketmq/pull/198#discussion_r154075283
 
 

 ##########
 File path: store/src/main/java/org/apache/rocketmq/store/MappedFile.java
 ##########
 @@ -570,6 +570,11 @@ public void munlock() {
         log.info("munlock {} {} {} ret = {} time consuming = {}", address, 
this.fileName, this.fileSize, ret, System.currentTimeMillis() - beginTime);
     }
 
+    //testable
+    File getFile() {
+        return this.file;
 
 Review comment:
   LGTM, but no need to return this file to test code, you could structure the 
File object directly.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to