Skip to content

Commit

Permalink
feat: introduce DowngradingLeader
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Sep 27, 2024
1 parent 3633474 commit 0b4f7c8
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 40 deletions.
21 changes: 11 additions & 10 deletions c++/greptime/v1/meta/heartbeat.pb.cc

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

3 changes: 2 additions & 1 deletion c++/greptime/v1/meta/heartbeat.pb.h

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

48 changes: 28 additions & 20 deletions go/greptime/v1/meta/heartbeat.pb.go

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

39 changes: 30 additions & 9 deletions java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java

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

4 changes: 4 additions & 0 deletions proto/greptime/v1/meta/heartbeat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ enum RegionRole {
Leader = 0;
// Readonly region.
Follower = 1;
// A downgrading region, which is in the process of downgrading from Leader to Follower.
//
// This role is used to prevent the region from being written during the downgrade process.
DowngradingLeader = 2;
}

message NodeInfo {
Expand Down

0 comments on commit 0b4f7c8

Please sign in to comment.