Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions options_compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ func (opts *FIFOCompactionOptions) SetMaxTableFilesSize(value uint64) {
C.rocksdb_fifo_compaction_options_set_max_table_files_size(opts.c, C.uint64_t(value))
}

// SetAllowCompaction specifies if the compaction of the oldest files together is allowed.
// if true, compaction will be triggered when level0_file_num_compaction_trigger
// Default: false
func (opts *FIFOCompactionOptions) SetAllowCompaction(allow_compaction bool) {
C.rocksdb_fifo_compaction_options_set_allow_compaction(opts.c, boolToChar(allow_compaction))
}

// Destroy deallocates the FIFOCompactionOptions object.
func (opts *FIFOCompactionOptions) Destroy() {
C.rocksdb_fifo_compaction_options_destroy(opts.c)
Expand Down