private void commitAsync(KetchReplica caller) { for (KetchReplica r : voters) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } for (KetchReplica r : followers) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } }
if (!equals(txnCommitted, committed) && shouldPushUnbatchedCommit(committed, leader.isIdle())) { pushCommitAsync(committed);
private void commitAsync(KetchReplica caller) { for (KetchReplica r : voters) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } for (KetchReplica r : followers) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } }
private void commitAsync(KetchReplica caller) { for (KetchReplica r : voters) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } for (KetchReplica r : followers) { if (r == caller) { continue; } if (r.shouldPushUnbatchedCommit(committedIndex, isIdle())) { r.pushCommitAsync(committedIndex); } } }
if (!equals(txnCommitted, committed) && shouldPushUnbatchedCommit(committed, leader.isIdle())) { pushCommitAsync(committed);
if (!equals(txnCommitted, committed) && shouldPushUnbatchedCommit(committed, leader.isIdle())) { pushCommitAsync(committed);