@@ -268,12 +268,6 @@ type compaction struct {
268
268
delElision compact.TombstoneElision
269
269
rangeKeyElision compact.TombstoneElision
270
270
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
-
277
271
// deleteOnly contains information specific to compactions with kind
278
272
// compactionKindDeleteOnly. A delete-only compaction is a special
279
273
// compaction that does not merge or write sstables. Instead, it only
@@ -3237,14 +3231,13 @@ func (d *DB) compactAndWrite(
3237
3231
if err != nil {
3238
3232
return compact.Result {Err : err }
3239
3233
}
3240
- c .allowedZeroSeqNum = c .allowZeroSeqNum ()
3241
3234
cfg := compact.IterConfig {
3242
3235
Comparer : c .comparer ,
3243
3236
Merge : d .merge ,
3244
3237
TombstoneElision : c .delElision ,
3245
3238
RangeKeyElision : c .rangeKeyElision ,
3246
3239
Snapshots : snapshots ,
3247
- AllowZeroSeqNum : c .allowedZeroSeqNum ,
3240
+ AllowZeroSeqNum : c .allowZeroSeqNum () ,
3248
3241
IneffectualSingleDeleteCallback : func (userKey []byte ) {
3249
3242
d .opts .EventListener .PossibleAPIMisuse (PossibleAPIMisuseInfo {
3250
3243
Kind : IneffectualSingleDelete ,
0 commit comments