mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
Fix event playback
This commit is contained in:
parent
a957cd649e
commit
2fc0ccf2d1
4
v/raft.c
4
v/raft.c
@ -392,6 +392,7 @@ u2_raft_work(u2_reck* rec_u)
|
||||
|
||||
while ( u2_nul != ova ) {
|
||||
_raft_punk(rec_u, u2k(u2t(u2h(ova))));
|
||||
|
||||
nex = u2k(u2t(ova));
|
||||
u2z(ova); ova = nex;
|
||||
}
|
||||
@ -427,7 +428,8 @@ u2_raft_work(u2_reck* rec_u)
|
||||
u2z(vir); vir = nex;
|
||||
|
||||
if ( u2_nul != ovo ) {
|
||||
ron = u2_cke_jam(u2k(u2t(ovo)));
|
||||
u2_noun egg = u2k(u2t(ovo));
|
||||
ron = u2_cke_jam(u2nc(u2k(rec_u->now), egg));
|
||||
u2z(ovo);
|
||||
c3_assert(rec_u->key);
|
||||
ron = u2_dc("en:crya", u2k(rec_u->key), ron);
|
||||
|
3
v/sist.c
3
v/sist.c
@ -29,8 +29,6 @@ u2_sist_pack(u2_reck* rec_u, c3_w typ_w, c3_w* bob_w, c3_w len_w)
|
||||
c3_d tar_d;
|
||||
u2_ular lar_u;
|
||||
|
||||
rec_u->ent_w++;
|
||||
|
||||
tar_d = lug_u->len_d + len_w;
|
||||
|
||||
lar_u.syn_w = u2_cr_mug((c3_w)tar_d);
|
||||
@ -40,6 +38,7 @@ u2_sist_pack(u2_reck* rec_u, c3_w typ_w, c3_w* bob_w, c3_w len_w)
|
||||
lar_u.tem_w = 0;
|
||||
lar_u.typ_w = typ_w;
|
||||
lar_u.ent_w = rec_u->ent_w;
|
||||
rec_u->ent_w++;
|
||||
lar_u.len_w = len_w;
|
||||
|
||||
if ( -1 == lseek64(lug_u->fid_i, 4ULL * tar_d, SEEK_SET) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user