pub fn compact_range(
    db: &DB,
    handle: &CFHandle,
    start_key: Option<&[u8]>,
    end_key: Option<&[u8]>,
    exclusive_manual: bool,
    max_subcompactions: u32,
) {
    let mut compact_opts = CompactOptions::new();
    // `exclusive_manual == false` means manual compaction can
    // concurrently run with other background compactions.
    compact_opts.set_exclusive_manual_compaction(exclusive_manual);
    compact_opts.set_max_subcompactions(max_subcompactions as i32);
    db.compact_range_cf_opt(handle, &compact_opts, start_key, end_key);
}
/// Compacts the column families in the specified range by manual or not.
Compacts the column families in the specified range by manual or not.
Compacts the column families in the specified range by manual or not .
pub fn compact_range(
    db: &DB,
    handle: &CFHandle,
    start_key: Option<&[u8]>,
    end_key: Option<&[u8]>,
    exclusive_manual: bool,
    max_subcompactions: u32,
) {
    let mut compact_opts = CompactOptions::new();
    // `exclusive_manual == false` means manual compaction can
    // concurrently run with other background compactions.
    compact_opts.set_exclusive_manual_compaction(exclusive_manual);
    compact_opts.set_max_subcompactions(max_subcompactions as i32);
    db.compact_range_cf_opt(handle, &compact_opts, start_key, end_key);
}
pub fn compact_range ( db : & DB , handle : & CFHandle , start_key : Option < & [ u8 ] > , end_key : Option < & [ u8 ] > , exclusive_manual : bool , max_subcompactions : u32 , ) { let mut compact_opts = CompactOptions :: new ( ) ; // `exclusive_manual == false` means manual compaction can // concurrently run with other background compactions. compact_opts . set_exclusive_manual_compaction ( exclusive_manual ) ; compact_opts . set_max_subcompactions ( max_subcompactions as i32 ) ; db . compact_range_cf_opt ( handle , & compact_opts , start_key , end_key ) ; }
Compacts the column families in the specified range by manual or not.
Compacts the column families in the specified range by manual or not .
db
&DB
handle
&CFHandle
start_key
Option<&[u8]>
end_key
Option<&[u8]>
exclusive_manual
bool
max_subcompactions
u32
db
&DB
handle
&CFHandle
start_key
Option<&[u8]>
end_key
Option<&[u8]>
exclusive_manual
bool
max_subcompactions
u32