Skip to content

Commit

Permalink
[ISSUE apache#7441] Fix log "Init the confirmOffset" keep printing er…
Browse files Browse the repository at this point in the history
…ror in controller mode (apache#7442)

* typo int readme[ecosystem]

* fix keep printing log problem
  • Loading branch information
fujian-zfj committed Oct 11, 2023
1 parent dc3f22f commit 7e4879a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public long getConfirmOffset() {
return this.defaultMessageStore.getMaxPhyOffset();
}
// First time it will compute the confirmOffset.
if (this.confirmOffset <= 0) {
if (this.confirmOffset < 0) {
setConfirmOffset(((AutoSwitchHAService) this.defaultMessageStore.getHaService()).computeConfirmOffset());
log.info("Init the confirmOffset to {}.", this.confirmOffset);
}
Expand Down

0 comments on commit 7e4879a

Please sign in to comment.