Merge pull request #3879 from urbit/jb/snapshot-post-replay

vere: save snapshot upon completed replay
This commit is contained in:
Joe Bryan 2020-11-03 14:56:54 -08:00 committed by GitHub
commit 54c0e1b9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -633,6 +633,9 @@ u3_disk_exit(u3_disk* log_u)
// cancel write thread
//
// XX can deadlock when called from signal handler
// XX revise SIGTSTP handling
//
if ( c3y == log_u->ted_o ) {
c3_i sas_i;

View File

@ -725,6 +725,7 @@ _pier_play(u3_play* pay_u)
u3_pier_cram(pir_u);
}
else if ( pay_u->eve_d == log_u->dun_d ) {
u3_lord_save(pir_u->god_u);
_pier_work_init(pir_u);
}
}