huskies: merge 507_story_apply_inbound_signedops_with_causal_order_queue_for_partition_recovery
This commit is contained in:
@@ -461,6 +461,13 @@ pub fn apply_remote_op(op: SignedOp) -> bool {
|
||||
.collect();
|
||||
|
||||
let result = state.crdt.apply(op.clone());
|
||||
|
||||
// Self-loop guard: op was already applied (came back via echo from peer).
|
||||
// Return false immediately — do not re-persist or re-add to ALL_OPS.
|
||||
if result == bft_json_crdt::json_crdt::OpState::AlreadySeen {
|
||||
return false;
|
||||
}
|
||||
|
||||
if result != bft_json_crdt::json_crdt::OpState::Ok
|
||||
&& result != bft_json_crdt::json_crdt::OpState::MissingCausalDependencies
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user