Skip to content

Commit

Permalink
sstable: set IndexPartitions property in columnar sstable writer
Browse files Browse the repository at this point in the history
Populate the IndexPartitions table-level property in the the columnar sstable
writer.
  • Loading branch information
jbowens committed Sep 25, 2024
1 parent 0595c1f commit 3a76074
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 127 deletions.
1 change: 1 addition & 0 deletions sstable/colblk_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ func (w *RawColumnWriter) flushBufferedIndexBlocks() (rootIndex block.Handle, er
// writing a large file or the index separators happen to be excessively
// long, we may have several index blocks and need to construct a
// "two-level" index structure.
w.props.IndexPartitions = uint64(len(w.indexBuffering.partitions))
switch len(w.indexBuffering.partitions) {
case 0:
// This is impossible because we'll flush the index block immediately
Expand Down
Loading

0 comments on commit 3a76074

Please sign in to comment.