mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 22:10:39 +00:00
Rename file
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
Reference in New Issue
Block a user