Skip to content

Commit e6062ae

Browse files
committed
options: add level_compaction_dynamic_level_bytes
1 parent 8b1d981 commit e6062ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ func (opts *Options) SetMaxBytesForLevelMultiplier(value float64) {
504504
C.rocksdb_options_set_max_bytes_for_level_multiplier(opts.c, C.double(value))
505505
}
506506

507+
func (opts *Options) SetLevelCompactionDynamicLevelBytes(value bool) {
508+
C.rocksdb_options_set_level_compaction_dynamic_level_bytes(opts.c, boolToChar(value))
509+
}
510+
507511
// SetMaxCompactionBytes sets the maximum number of bytes in all compacted files.
508512
// We try to limit number of bytes in one compaction to be lower than this
509513
// threshold. But it's not guaranteed.

0 commit comments

Comments
 (0)