mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-02 03:52:13 +03:00
u3: fix snapshot corruption by preemptively dirtying the loom
This commit is contained in:
parent
08ddb0b86a
commit
4087699172
@ -913,6 +913,10 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
|
||||
_ce_patch_delete();
|
||||
}
|
||||
|
||||
// mark all pages dirty (pages in the snapshot will be marked clean)
|
||||
//
|
||||
u3e_foul();
|
||||
|
||||
/* Write image files to memory; reinstate protection.
|
||||
*/
|
||||
{
|
||||
@ -933,7 +937,6 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
|
||||
** snapshot on a future boot for which the images are not empty.
|
||||
*/
|
||||
if ( (0 == u3P.nor_u.pgs_w) && (0 == u3P.sou_u.pgs_w) ) {
|
||||
u3e_foul();
|
||||
u3l_log("live: logical boot\r\n");
|
||||
nuu_o = c3y;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user