Skip to content

Commit c234cb4

Browse files
authored
Add header flags to compactor (#40)
1 parent 9fabe13 commit c234cb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compactor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import (
1111
type Compactor struct {
1212
enc *Encoder
1313
inputs []*compactorInput
14+
15+
// These flags will be set when encoding the header.
16+
HeaderFlags uint32
1417
}
1518

1619
// NewCompactor returns a new instance of Compactor with default settings.
@@ -70,6 +73,7 @@ func (c *Compactor) Compact(ctx context.Context) (retErr error) {
7073
// Generate output header. Skip NodeID as it's not meaningful after compaction.
7174
if err := c.enc.EncodeHeader(Header{
7275
Version: Version,
76+
Flags: c.HeaderFlags,
7377
PageSize: minHdr.PageSize,
7478
Commit: maxHdr.Commit,
7579
MinTXID: minHdr.MinTXID,

0 commit comments

Comments
 (0)