Skip to content

Commit 14b1544

Browse files
committed
db: remove compaction.allowedZeroSeqNum
This field isn't used.
1 parent 520d3f3 commit 14b1544

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compaction.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ type compaction struct {
268268
delElision compact.TombstoneElision
269269
rangeKeyElision compact.TombstoneElision
270270

271-
// allowedZeroSeqNum is true if seqnums can be zeroed if there are no
272-
// snapshots requiring them to be kept. This determination is made by
273-
// looking for an sstable which overlaps the bounds of the compaction at a
274-
// lower level in the LSM during runCompaction.
275-
allowedZeroSeqNum bool
276-
277271
// deleteOnly contains information specific to compactions with kind
278272
// compactionKindDeleteOnly. A delete-only compaction is a special
279273
// compaction that does not merge or write sstables. Instead, it only
@@ -3237,14 +3231,13 @@ func (d *DB) compactAndWrite(
32373231
if err != nil {
32383232
return compact.Result{Err: err}
32393233
}
3240-
c.allowedZeroSeqNum = c.allowZeroSeqNum()
32413234
cfg := compact.IterConfig{
32423235
Comparer: c.comparer,
32433236
Merge: d.merge,
32443237
TombstoneElision: c.delElision,
32453238
RangeKeyElision: c.rangeKeyElision,
32463239
Snapshots: snapshots,
3247-
AllowZeroSeqNum: c.allowedZeroSeqNum,
3240+
AllowZeroSeqNum: c.allowZeroSeqNum(),
32483241
IneffectualSingleDeleteCallback: func(userKey []byte) {
32493242
d.opts.EventListener.PossibleAPIMisuse(PossibleAPIMisuseInfo{
32503243
Kind: IneffectualSingleDelete,

0 commit comments

Comments
 (0)