Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] Async Raftstore IO Demo: Store Adaptive IO #4

Open
wants to merge 15 commits into
base: fsync-control
Choose a base branch
from
123 changes: 93 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/engine_panic/src/raft_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ impl RaftLogBatch for PanicWriteBatch {
panic!()
}

fn persist_size(&self) -> usize {
panic!()
}

fn is_empty(&self) -> bool {
panic!()
}
Expand Down
4 changes: 4 additions & 0 deletions components/engine_rocks/src/raft_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ impl RaftLogBatch for RocksWriteBatch {
self.put_msg(&keys::raft_state_key(raft_group_id), state)
}

fn persist_size(&self) -> usize {
self.data_size()
}

fn is_empty(&self) -> bool {
Mutable::is_empty(self)
}
Expand Down
Loading