We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fabe13 commit c234cb4Copy full SHA for c234cb4
compactor.go
@@ -11,6 +11,9 @@ import (
11
type Compactor struct {
12
enc *Encoder
13
inputs []*compactorInput
14
+
15
+ // These flags will be set when encoding the header.
16
+ HeaderFlags uint32
17
}
18
19
// NewCompactor returns a new instance of Compactor with default settings.
@@ -70,6 +73,7 @@ func (c *Compactor) Compact(ctx context.Context) (retErr error) {
70
73
// Generate output header. Skip NodeID as it's not meaningful after compaction.
71
74
if err := c.enc.EncodeHeader(Header{
72
75
Version: Version,
76
+ Flags: c.HeaderFlags,
77
PageSize: minHdr.PageSize,
78
Commit: maxHdr.Commit,
79
MinTXID: minHdr.MinTXID,
0 commit comments