Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Sep 23, 2024
1 parent 7380d80 commit e95364c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions pkg/brpb/brpb.pb.go

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

7 changes: 5 additions & 2 deletions proto/brpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,11 @@ message DataFileInfo {
bytes region_end_key = 21;
// The region epoch that the log file belongs to.
// In older versions, this might be empty.
// If a region get split or merged during observing,
// the file may contain multi epoches.
// If a region get split or merged during observing, the file may contain multi epoches.
// This may not be complete: file may contain records from other versions.
//
// For now(v8.5), there will only be exactly one epoch due to the restriction of log backup code.
// `region_start_key` and `region_end_key` will match this epoch.
repeated metapb.RegionEpoch region_epoch = 22;

// Encryption information of this data file, not set if plaintext.
Expand Down Expand Up @@ -812,6 +814,7 @@ message RegionMetaHint {
// You may get region id from `LogFileSubcompactionMeta`.

// The left boundary of the region of this epoch.
// It is an byte-comparable encoded key without TS.
bytes start_key = 1;
// The right boundary of the region of the epoch.
bytes end_key = 2;
Expand Down

0 comments on commit e95364c

Please sign in to comment.