[thin_restore (rust)] rewrite the btree_builder
Now copes with adding shared leaves.
This commit is contained in:
@@ -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>,
|
||||
|
Reference in New Issue
Block a user