Skip to content

Commit

Permalink
Fix log messages
Browse files Browse the repository at this point in the history
instance.h is a low water mark, not high water mark.

Change-Id: Ia9ed7275bd80b46e7f9fa181cbffe08b6aaf5c64
Signed-off-by: Yuta Namiki <y.namiki@gmail.com>
  • Loading branch information
Yuta Namiki committed Feb 13, 2017
1 parent e29f1b6 commit 0addcfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/pbft/pbft-core.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,10 +830,10 @@ func (instance *pbftCore) recvCommit(commit *Commit) error {

if !instance.inWV(commit.View, commit.SequenceNumber) {
if commit.SequenceNumber != instance.h && !instance.skipInProgress {
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)
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)
} else {
// This is perfectly normal
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)
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)
}
return nil
}
Expand Down

0 comments on commit 0addcfb

Please sign in to comment.