1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! SstFileManager is used to track SST files in the DB and control there
//! deletion rate.

use std::path::Path;

use super::Result;
use crate::env::{Env, Logger};

/// SstFileManager is used to track SST files in the DB and control there
/// deletion rate.
///
/// All SstFileManager public functions are thread-safe.
pub struct SstFileManager;

unsafe impl Sync for SstFileManager {}
unsafe impl Send for SstFileManager {}

impl SstFileManager {
    pub fn new<P: AsRef<Path>>(
        env: &Env,
        info_log: Option<&Logger>,
        trash_dir: P,
        rate_bytes_per_sec: i64,
        delete_existing_trash: bool,
    ) -> Result<SstFileManager> {
        unimplemented!()
    }
}

// extern SstFileManager* NewSstFileManager(
// Env* env, std::shared_ptr<Logger> info_log = nullptr,
// std::string trash_dir = "", int64_t rate_bytes_per_sec = 0,
// bool delete_existing_trash = true, Status* status = nullptr);
//