mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
sync PDDB before churning or flushing
This commit is contained in:
parent
a68eb7cc73
commit
deecd3651d
1 changed files with 5 additions and 0 deletions
|
|
@ -217,8 +217,13 @@ impl<'a> ShellCmdApi<'a> for PddbCmd {
|
|||
}
|
||||
}
|
||||
"churn" => {
|
||||
write!(ret, "Sync result code: {:?}\n", self.pddb.sync()).ok();
|
||||
write!(ret, "Churn result code: {:?}", self.pddb.rekey_pddb(pddb::PddbRekeyOp::Churn)).ok();
|
||||
}
|
||||
"flush" => {
|
||||
write!(ret, "Sync result code: {:?}\n", self.pddb.sync()).ok();
|
||||
write!(ret, "Flush result code: {:?}", self.pddb.flush_space_update()).ok();
|
||||
}
|
||||
#[cfg(feature="test-rekey")]
|
||||
"rekey" => {
|
||||
let old_dna = if let Some(dna_str) = tokens.next() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue