diff --git a/vault/ha.go b/vault/ha.go index c8787b3240b2..2c79e36c4e96 100644 --- a/vault/ha.go +++ b/vault/ha.go @@ -773,7 +773,7 @@ func (c *Core) cleanLeaderPrefix(ctx context.Context, uuid string, leaderLostCh // clearLeader is used to clear our leadership entry func (c *Core) clearLeader(uuid string) error { key := coreLeaderPrefix + uuid - err := c.barrier.Delete(c.activeContext, key) + err := c.barrier.Delete(context.Background(), key) // Advertise ourselves as a standby sd, ok := c.ha.(physical.ServiceDiscovery)