Skip to content

Commit

Permalink
make epoch repeated
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Aug 16, 2024
1 parent 8486dfe commit 773784d
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 88 deletions.
176 changes: 90 additions & 86 deletions pkg/brpb/brpb.pb.go

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

4 changes: 3 additions & 1 deletion proto/brpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,9 @@ message DataFileInfo {
bytes region_end_key = 21;
// The region epoch that the log file belongs to.
// In older versions, this might be empty.
metapb.RegionEpoch region_epoch = 22;
// If a region get split or merged during observing,
// the file may contain multi epoches.
repeated metapb.RegionEpoch region_epoch = 22;

// It may support encrypting at future.
reserved "iv";
Expand Down
3 changes: 2 additions & 1 deletion scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,8 @@
{
"id": 22,
"name": "region_epoch",
"type": "metapb.RegionEpoch"
"type": "metapb.RegionEpoch",
"is_repeated": true
}
],
"reserved_names": [
Expand Down

0 comments on commit 773784d

Please sign in to comment.