mirror of https://github.com/hashicorp/consul
Sets the ignore flag on coordinate update Raft log entries.
parent
c0bd639662
commit
26095faae0
|
@ -87,8 +87,12 @@ func (c *Coordinate) batchApplyUpdates() error {
|
||||||
end = size
|
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]
|
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
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue