Skip to content

Commit b3ab2cf

Browse files
author
Iulian Moraru
committed
Missing case when updating conflicts.
1 parent 96eb925 commit b3ab2cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/epaxos/epaxos.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,9 @@ func (r *Replica) updateConflicts(cmds []state.Command, replica int32, instance
703703
if d < instance {
704704
r.conflicts[replica][cmds[i].K] = instance
705705
}
706-
}
706+
} else {
707+
r.conflicts[replica][cmds[i].K] = instance
708+
}
707709
if s, present := r.maxSeqPerKey[cmds[i].K]; present {
708710
if s < seq {
709711
r.maxSeqPerKey[cmds[i].K] = seq

0 commit comments

Comments
 (0)