From 5d03307c6387dbe4bccafcdd12909b349c8c6572 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 6 May 2020 08:57:51 -0400 Subject: [PATCH] reorder volume claim batch request raft message (#7871) For backwards compatibility during upgrades, new raft message types need to come at the end of the enum. --- nomad/structs/structs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index edef82ad931..5a2e47c5f28 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -51,6 +51,8 @@ var ( type MessageType uint8 +// note: new raft message types need to be added to the end of this +// list of contents const ( NodeRegisterRequestType MessageType = iota NodeDeregisterRequestType @@ -90,8 +92,8 @@ const ( CSIVolumeRegisterRequestType CSIVolumeDeregisterRequestType CSIVolumeClaimRequestType - CSIVolumeClaimBatchRequestType ScalingEventRegisterRequestType + CSIVolumeClaimBatchRequestType ) const (