You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/05/13 01:20:43 UTC

[GitHub] [rocketmq] hzh0425 commented on a diff in pull request #4301: [ISSUE #3962] Fix variable name in MappedFile#isAbleToCommit()

hzh0425 commented on code in PR #4301:
URL: https://github.com/apache/rocketmq/pull/4301#discussion_r871926976


##########
store/src/main/java/org/apache/rocketmq/store/MappedFile.java:
##########
@@ -371,18 +371,18 @@ private boolean isAbleToFlush(final int flushLeastPages) {
     }
 
     protected boolean isAbleToCommit(final int commitLeastPages) {
-        int flush = this.committedPosition.get();
+        int commit = this.committedPosition.get();

Review Comment:
   > I think `flush` is correct,This represents the offset of the flush without changing the variable name
   
   I think so too



-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org