Skip to content

Commit

Permalink
Add last_observed_time for raft messages (#1276)
Browse files Browse the repository at this point in the history
* Add last_observed_time for raft messages

Signed-off-by: hhwyt <hhwyt1@gmail.com>

* address comments

* update proto.lock

---------

Signed-off-by: hhwyt <hhwyt1@gmail.com>
Co-authored-by: glorv <glorvs@163.com>
  • Loading branch information
hhwyt and glorv authored Nov 22, 2024
1 parent b5b7843 commit 17bdaaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proto/tikvpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ message BatchCommandsResponse {

message BatchRaftMessage {
repeated raft_serverpb.RaftMessage msgs = 1;
// Used for measure the send duration.
uint64 last_observed_time = 13;
}

message BatchCommandsEmptyRequest {
Expand Down
5 changes: 5 additions & 0 deletions scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21701,6 +21701,11 @@
"name": "msgs",
"type": "raft_serverpb.RaftMessage",
"is_repeated": true
},
{
"id": 13,
"name": "last_observed_time",
"type": "uint64"
}
]
},
Expand Down

0 comments on commit 17bdaaa

Please sign in to comment.