From 6ed6966a1fa5f145c07fa9aae61a49c1ba271d81 Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Wed, 4 Aug 2021 13:07:49 -0400 Subject: [PATCH] fix state index for `CAOpSetRootsAndConfig` op (#10675) * fix state index for `CAOpSetRootsAndConfig` op * add changelog * Update changelog Co-authored-by: Daniel Nephin * remove the change log as it's not needed Co-authored-by: Daniel Nephin --- agent/consul/fsm/commands_oss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/fsm/commands_oss.go b/agent/consul/fsm/commands_oss.go index d45f22bdb..3ab3fe821 100644 --- a/agent/consul/fsm/commands_oss.go +++ b/agent/consul/fsm/commands_oss.go @@ -462,7 +462,7 @@ func (c *FSM) applyConnectCAOperation(buf []byte, index uint64) interface{} { return act } - act, err = c.state.CACheckAndSetConfig(index+1, req.Config.ModifyIndex, req.Config) + act, err = c.state.CACheckAndSetConfig(index, req.Config.ModifyIndex, req.Config) if err != nil { return err }