You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/11/22 03:00:56 UTC
[GitHub] [rocketmq] RongtongJin commented on a diff in pull request #5565: delete 'j' variate
RongtongJin commented on code in PR #5565:
URL: https://github.com/apache/rocketmq/pull/5565#discussion_r1028780824
##########
store/src/main/java/org/apache/rocketmq/store/logfile/DefaultMappedFile.java:
##########
@@ -560,7 +560,7 @@ public void warmMappedFile(FlushDiskType type, int pages) {
ByteBuffer byteBuffer = this.mappedByteBuffer.slice();
long flush = 0;
// long time = System.currentTimeMillis();
- for (long i = 0, j = 0; i < this.fileSize; i += DefaultMappedFile.OS_PAGE_SIZE, j++) {
+ for (long i = 0; i < this.fileSize; i += DefaultMappedFile.OS_PAGE_SIZE) {
Review Comment:
j is used in the code commented below
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org