pub fn fetch_kvs_before(&self, gate: FileSeq, vec: &mut Vec<(Vec<u8>, Vec<u8>)>) {
        for (key, (value, file_id)) in &self.kvs {
            if file_id.queue == LogQueue::Append && file_id.seq <= gate {
                vec.push((key.clone(), value.clone()));
            }
        }
    }
/// Pulls all key value pairs older than or equal to `gate`, to the provided
/// buffer.
Pulls all key value pairs older than or equal to `gate`, to the provided
buffer.
Pulls all key value pairs older than or equal to ` gate ` to the provided buffer .
pub fn fetch_kvs_before(&self, gate: FileSeq, vec: &mut Vec<(Vec<u8>, Vec<u8>)>) {
        for (key, (value, file_id)) in &self.kvs {
            if file_id.queue == LogQueue::Append && file_id.seq <= gate {
                vec.push((key.clone(), value.clone()));
            }
        }
    }
pub fn fetch_kvs_before ( & self , gate : FileSeq , vec : & mut Vec < ( Vec < u8 > , Vec < u8 > ) > ) { for ( key , ( value , file_id ) ) in & self . kvs { if file_id . queue == LogQueue :: Append && file_id . seq <= gate { vec . push ( ( key . clone ( ) , value . clone ( ) ) ) ; } } }
Pulls all key value pairs older than or equal to `gate`, to the provided
buffer.
Pulls all key value pairs older than or equal to ` gate ` to the provided buffer .
&self
gate
FileSeq
vec
&mut Vec<(Vec<u8>, Vec<u8>)>