mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 17:03:31 +00:00
Sets the ignore flag on coordinate update Raft log entries.
This commit is contained in:
parent
c0bd639662
commit
26095faae0
@ -87,8 +87,12 @@ func (c *Coordinate) batchApplyUpdates() error {
|
||||
end = size
|
||||
}
|
||||
|
||||
// We set the "safe to ignore" flag on this update type so old
|
||||
// servers don't crash if they see one of these.
|
||||
t := structs.CoordinateBatchUpdateType | structs.IgnoreUnknownTypeFlag
|
||||
|
||||
slice := updates[start:end]
|
||||
if _, err := c.srv.raftApply(structs.CoordinateBatchUpdateType, slice); err != nil {
|
||||
if _, err := c.srv.raftApply(t, slice); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user