Sets the ignore flag on coordinate update Raft log entries.

pull/1353/head
James Phillips 2015-10-27 14:41:33 -07:00
parent c0bd639662
commit 26095faae0
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
}