From 0addcfb1e574e6a18f1e87b4a0282f9a57a17843 Mon Sep 17 00:00:00 2001 From: Yuta Namiki Date: Mon, 13 Feb 2017 15:25:18 +0900 Subject: [PATCH] Fix log messages instance.h is a low water mark, not high water mark. Change-Id: Ia9ed7275bd80b46e7f9fa181cbffe08b6aaf5c64 Signed-off-by: Yuta Namiki --- consensus/pbft/pbft-core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/pbft/pbft-core.go b/consensus/pbft/pbft-core.go index 943572a5afb..c463a5c7b08 100644 --- a/consensus/pbft/pbft-core.go +++ b/consensus/pbft/pbft-core.go @@ -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 }