Skip to content

Commit 0addcfb

Browse files
author
Yuta Namiki
committed
Fix log messages
instance.h is a low water mark, not high water mark. Change-Id: Ia9ed7275bd80b46e7f9fa181cbffe08b6aaf5c64 Signed-off-by: Yuta Namiki <[email protected]>
1 parent e29f1b6 commit 0addcfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consensus/pbft/pbft-core.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,10 @@ func (instance *pbftCore) recvCommit(commit *Commit) error {
830830

831831
if !instance.inWV(commit.View, commit.SequenceNumber) {
832832
if commit.SequenceNumber != instance.h && !instance.skipInProgress {
833-
logger.Warningf("Replica %d ignoring commit for view=%d/seqNo=%d: not in-wv, in view %d, high water mark %d", instance.id, commit.View, commit.SequenceNumber, instance.view, instance.h)
833+
logger.Warningf("Replica %d ignoring commit for view=%d/seqNo=%d: not in-wv, in view %d, low water mark %d", instance.id, commit.View, commit.SequenceNumber, instance.view, instance.h)
834834
} else {
835835
// This is perfectly normal
836-
logger.Debugf("Replica %d ignoring commit for view=%d/seqNo=%d: not in-wv, in view %d, high water mark %d", instance.id, commit.View, commit.SequenceNumber, instance.view, instance.h)
836+
logger.Debugf("Replica %d ignoring commit for view=%d/seqNo=%d: not in-wv, in view %d, low water mark %d", instance.id, commit.View, commit.SequenceNumber, instance.view, instance.h)
837837
}
838838
return nil
839839
}

0 commit comments

Comments
 (0)