Fence Windows sync until the helper confirms the signed decision
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -284,6 +284,15 @@ impl<V: Ed25519Verifier> ClientSync<V> {
|
||||
old == h.journal_id && h.checkpoint >= meta.helper_checkpoint,
|
||||
"HELPER_JOURNAL_ROLLBACK"
|
||||
);
|
||||
if self.helper_identity == HelperIdentity::System {
|
||||
// A locally committed Windows decision is not proof of its
|
||||
// application by SYSTEM. Never advance either checkpoint
|
||||
// from an older helper head, including after process loss.
|
||||
ensure!(
|
||||
meta.decision.is_some() && h.previous_decision_id == meta.decision,
|
||||
"SYSTEM_HELPER_APPLY_UNCONFIRMED"
|
||||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ensure!(meta.helper_id.is_none(), "HELPER_JOURNAL_DISAPPEARED");
|
||||
|
||||
Reference in New Issue
Block a user