Skip to content

Commit f128d3a

Browse files
committed
backup: add is_compacted field to backup manifest
This commit adds an `is_compacted` field to the backup manifest, allowing us to easily detect when a manifest represents a compacted backup. Epic: None Release note: None
1 parent 89e3036 commit f128d3a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkg/backup/backuppb/backup.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ message BackupManifest {
151151
int32 elided_prefix = 28 [(gogoproto.nullable) = false,
152152
(gogoproto.customtype) = "github.com/cockroachdb/cockroach/pkg/sql/execinfrapb.ElidePrefix"];
153153

154-
// NEXT ID: 29.
154+
bool is_compacted = 29;
155+
156+
// NEXT ID: 30.
155157
}
156158

157159
message BackupPartitionDescriptor{

pkg/backup/compaction_job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ func createCompactionManifest(
622622
if err != nil {
623623
return nil, err
624624
}
625+
m.IsCompacted = true
625626
m.IntroducedSpans, err = compactIntroducedSpans(ctx, m, compactChain)
626627
if err != nil {
627628
return nil, err

0 commit comments

Comments
 (0)