Serialize deferred operations
This commit is contained in:
parent
d383ff30ce
commit
870fa5f278
4 changed files with 23 additions and 1 deletions
|
@ -53,7 +53,7 @@ impl<T: Operation> OperationQueue<T> {
|
|||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = &T> {
|
||||
self.0.cursor::<()>().map(|i| &i.0)
|
||||
self.0.iter().map(|i| &i.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1101,6 +1101,10 @@ impl Buffer {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn deferred_ops(&self) -> impl Iterator<Item = &Operation> {
|
||||
self.deferred_ops.iter()
|
||||
}
|
||||
|
||||
fn flush_deferred_ops(&mut self) -> Result<()> {
|
||||
self.deferred_replicas.clear();
|
||||
let mut deferred_ops = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue