Rename file

This commit is contained in:
Bojan Serafimov
2023-01-10 11:09:02 -05:00
parent 7c6909c31f
commit f22437086e
3 changed files with 9 additions and 9 deletions

View File

@@ -75,10 +75,10 @@ use utils::{
mod blob_io;
pub mod block_io;
pub mod bst_layer_map;
pub mod coverage;
mod disk_btree;
pub(crate) mod ephemeral_file;
pub mod latest_layer_map;
pub mod layer_coverage;
pub mod layer_map;
pub mod metadata;

View File

@@ -1,17 +1,17 @@
use std::ops::Range;
use super::coverage::Coverage;
use super::layer_coverage::LayerCoverage;
pub struct LatestLayerMap<Value> {
image_coverage: Coverage<Value>,
delta_coverage: Coverage<Value>,
image_coverage: LayerCoverage<Value>,
delta_coverage: LayerCoverage<Value>,
}
impl<T: Clone> Default for LatestLayerMap<T> {
fn default() -> Self {
Self {
image_coverage: Coverage::default(),
delta_coverage: Coverage::default(),
image_coverage: LayerCoverage::default(),
delta_coverage: LayerCoverage::default(),
}
}
}

View File

@@ -5,7 +5,7 @@ use std::ops::Range;
// results are not the same on some tests.
use rpds::RedBlackTreeMapSync;
pub struct Coverage<Value> {
pub struct LayerCoverage<Value> {
/// Mapping key to the latest layer (if any) until the next key.
/// We use the Sync version of the map because we want Self to
/// be Sync. Using nonsync might be faster, if we can work with
@@ -13,13 +13,13 @@ pub struct Coverage<Value> {
head: RedBlackTreeMapSync<i128, Option<(u64, Value)>>,
}
impl<T: Clone> Default for Coverage<T> {
impl<T: Clone> Default for LayerCoverage<T> {
fn default() -> Self {
Self::new()
}
}
impl<Value: Clone> Coverage<Value> {
impl<Value: Clone> LayerCoverage<Value> {
pub fn new() -> Self {
Self {
head: RedBlackTreeMapSync::default(),