mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
total hack to get effects processed sooner
This commit is contained in:
parent
16f01b11b0
commit
98a44cde66
14
v/raft.c
14
v/raft.c
@ -1621,7 +1621,6 @@ _raft_comm(u2_reck* rec_u, c3_d bid_d)
|
||||
egg_u = rec_u->ova.egg_u;
|
||||
while ( egg_u ) {
|
||||
if ( egg_u->ent_d <= bid_d ) {
|
||||
egg_u->did = u2_yes;
|
||||
egg_u->cit = u2_yes;
|
||||
} else break;
|
||||
egg_u = egg_u->nex_u;
|
||||
@ -1711,15 +1710,7 @@ u2_raft_work(u2_reck* rec_u)
|
||||
rec_u->ova.egg_u = egg_u->nex_u;
|
||||
}
|
||||
|
||||
if ( u2_yes == egg_u->cit ) {
|
||||
_raft_kick_all(rec_u, vir);
|
||||
}
|
||||
else {
|
||||
// We poked an event, but Raft failed to persist it.
|
||||
// TODO: gracefully recover.
|
||||
uL(fprintf(uH, "vere: event executed but not persisted\n"));
|
||||
c3_assert(0);
|
||||
}
|
||||
egg_u->cit = u2_yes;
|
||||
free(egg_u);
|
||||
}
|
||||
else break;
|
||||
@ -1789,9 +1780,8 @@ u2_raft_work(u2_reck* rec_u)
|
||||
rec_u->ova.geg_u->nex_u = egg_u;
|
||||
rec_u->ova.geg_u = egg_u;
|
||||
}
|
||||
}
|
||||
else {
|
||||
_raft_kick_all(rec_u, vir);
|
||||
egg_u->did = u2_yes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user