[thin_restore (rust)] rewrite the btree_builder

Now copes with adding shared leaves.
This commit is contained in:
Joe Thornber
2020-12-09 13:22:32 +00:00
parent 443b3c8f0b
commit 04e0eb3a66
4 changed files with 465 additions and 206 deletions

View File

@@ -7,9 +7,10 @@ use crate::pdata::space_map::*;
//------------------------------------------
#[derive(Clone)]
pub struct WriteBatcher {
engine: Arc<dyn IoEngine + Send + Sync>,
sm: Arc<Mutex<dyn SpaceMap>>,
pub engine: Arc<dyn IoEngine + Send + Sync>,
pub sm: Arc<Mutex<dyn SpaceMap>>,
batch_size: usize,
queue: Vec<Block>,