Skip to content
2 changes: 1 addition & 1 deletion common/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ type (
)

const (
FailoverTypeForce = iota + 1
FailoverTypeForce FailoverType = iota + 1
FailoverTypeGrace
)

Expand Down
1 change: 1 addition & 0 deletions common/domain/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var (
errGracefulFailoverInActiveCluster = &types.BadRequestError{Message: "Cannot start the graceful failover from an active cluster to an active cluster."}
errOngoingGracefulFailover = &types.BadRequestError{Message: "Cannot start concurrent graceful failover."}
errInvalidGracefulFailover = &types.BadRequestError{Message: "Cannot start graceful failover without updating active cluster or in local domain."}
errInvalidFailoverNoChangeDetected = &types.BadRequestError{Message: "a failover was requested, but there was no change detected, the configuration was not updated"}
errActiveClusterNameRequired = &types.BadRequestError{Message: "ActiveClusterName is required for all global domains."}
errLocalDomainsCannotFailover = &types.BadRequestError{Message: "Local domains cannot perform failovers or change replication configuration"}

Expand Down
Loading
Loading