Skip to content

Commit

Permalink
Merge branch 'master' into hanfei/join
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfei1991 authored Apr 8, 2020
2 parents 8545e16 + b4034bc commit a1b88cb
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 67 deletions.
130 changes: 67 additions & 63 deletions pkg/replicate_mode/replicate_mode.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions proto/replicate_mode.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ message DRAutoSync {
}
string label_key = 1; // the key of the label that used for distinguish different DC.
State state = 2;
uint64 recover_id = 3; // Unique ID for a recovery
uint64 state_id = 3; // Unique ID of the state, it increases after each state transfer.
int32 wait_sync_timeout_hint = 4; // Duration to wait before switching to SYNC by force (in seconds)
}

// The replicate status sync from TiKV to PD.
message RegionReplicateStatus {
enum State {
MAJORITY = 0; // Logs sync to majority peers
INTEGRITY_OVER_LABEL = 1; // Logs sync to different DCs
UNKNOWN = 0; // The region's state is unknown
MAJORITY = 1; // Logs sync to majority peers
INTEGRITY_OVER_LABEL = 2; // Logs sync to different DCs
}
State state = 1;
uint64 recover_id = 2; // Unique ID for a recovery
uint64 state_id = 2; // Unique ID of the state, it increases after each state transfer.
}

0 comments on commit a1b88cb

Please sign in to comment.