Skip to main content

delete_segment

Function delete_segment 

Source
pub async fn delete_segment<S: StorageEngine>(
    storage: &Arc<S>,
    name: &str,
    seg_id: u64,
) -> Result<(), LiteError>
Expand description

Delete the segment for seg_id from storage.

On pagedb backend, the segment is tombstoned and reaped by the next GC cycle. On KV backends, the blob is deleted immediately.