[era_dump (rust)] Dump the current_writeset that has not been archived
This patch is added in corresponding to the dm-era patch de89afc1 in kernel: dm era: Recover committed writeset after crash
This commit is contained in:
parent
533e174051
commit
cc89cef43f
@ -277,9 +277,7 @@ pub fn dump_metadata(
|
|||||||
};
|
};
|
||||||
out.superblock_b(&xml_sb)?;
|
out.superblock_b(&xml_sb)?;
|
||||||
|
|
||||||
let mut path = vec![0];
|
let writesets = get_writesets_ordered(engine.clone(), sb, repair)?;
|
||||||
let writesets =
|
|
||||||
btree_to_map::<Writeset>(&mut path, engine.clone(), repair, sb.writeset_tree_root)?;
|
|
||||||
for (era, ws) in writesets.iter() {
|
for (era, ws) in writesets.iter() {
|
||||||
dump_writeset(engine.clone(), out, *era as u32, ws, repair)?;
|
dump_writeset(engine.clone(), out, *era as u32, ws, repair)?;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user