feat: complete remaining jetstream parity implementation plan
This commit is contained in:
@@ -79,6 +79,16 @@ public sealed class RaftNode
|
||||
Log.AppendReplicated(entry);
|
||||
}
|
||||
|
||||
public Task TryAppendFromLeaderAsync(RaftLogEntry entry, CancellationToken ct)
|
||||
{
|
||||
_ = ct;
|
||||
if (entry.Term < TermState.CurrentTerm)
|
||||
throw new InvalidOperationException("stale term append rejected");
|
||||
|
||||
ReceiveReplicatedEntry(entry);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public async Task<RaftSnapshot> CreateSnapshotAsync(CancellationToken ct)
|
||||
{
|
||||
var snapshot = new RaftSnapshot
|
||||
|
||||
Reference in New Issue
Block a user