Skip to content

Commit

Permalink
[parser] parser: append replica-only state to previous one strictly (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
AilinKid authored and ti-chi-bot committed Oct 9, 2021
1 parent 49b6c5e commit 8fcee19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parser/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ const (
// StateWriteOnly means we can use any write operation on this schema element,
// but outer can't read the changed data.
StateWriteOnly
// StateReplica means we're waiting tiflash replica to be finished.
StateReplicaOnly
// StateWriteReorganization means we are re-organizing whole data after write only state.
StateWriteReorganization
// StateDeleteReorganization means we are re-organizing whole data after delete only state.
StateDeleteReorganization
// StatePublic means this schema element is ok for all write and read operations.
StatePublic
// StateReplica means we're waiting tiflash replica to be finished.
StateReplicaOnly
/*
* Please add the new state at the end to keep the values consistent across versions.
*/
)

// String implements fmt.Stringer interface.
Expand Down

0 comments on commit 8fcee19

Please sign in to comment.