pub fn put(&mut self, key: Vec<u8>, value: Vec<u8>, file_id: FileId) {
        if let Some(origin) = self.kvs.insert(key, (value, file_id)) {
            self.global_stats.delete(origin.1.queue, 1);
        }
        self.global_stats.add(file_id.queue, 1);
    }
/// Puts a key value pair that has been written to the specified file. The
/// old value for this key will be deleted if exists.
Puts a key value pair that has been written to the specified file. The
old value for this key will be deleted if exists.
Puts a key value pair that has been written to the specified file . The old value for this key will be deleted if exists .
pub fn put(&mut self, key: Vec<u8>, value: Vec<u8>, file_id: FileId) {
        if let Some(origin) = self.kvs.insert(key, (value, file_id)) {
            self.global_stats.delete(origin.1.queue, 1);
        }
        self.global_stats.add(file_id.queue, 1);
    }
pub fn put ( & mut self , key : Vec < u8 > , value : Vec < u8 > , file_id : FileId ) { if let Some ( origin ) = self . kvs . insert ( key , ( value , file_id ) ) { self . global_stats . delete ( origin . 1 . queue , 1 ) ; } self . global_stats . add ( file_id . queue , 1 ) ; }
Puts a key value pair that has been written to the specified file.
Puts a key value pair that has been written to the specified file .
&mut self
key
Vec<u8>
value
Vec<u8>
file_id
FileId