RongtongJin commented on code in PR #8897:
URL: https://github.com/apache/rocketmq/pull/8897#discussion_r1835214112
##########
store/src/main/java/org/apache/rocketmq/store/AllocateMappedFileService.java:
##########
@@ -76,13 +82,14 @@ public MappedFile putRequestAndReturnMappedFile(String
nextFilePath, String next
canSubmitRequests--;
}
+ String nextNextFileName =
nextNextFilePath.substring(nextNextFilePath.lastIndexOf("/") + 1);
Review Comment:
It is necessary to use File.separator, as the file path separator on other
OS may not be '/'.
--
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]