Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit afdc06b

Browse files
committed
Fix entry index calculation in raftable_sync.
1 parent 61158ee commit afdc06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/raftable/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static void attend(Client *c)
334334
c->good = false;
335335
} else {
336336
// a sync command
337-
c->expect.index = raft_progress(raft);
337+
c->expect.index = raft_progress(raft) - 1;
338338
if (raft_applied(raft, c->expect.id, c->expect.index))
339339
{
340340
int ok = 1;

0 commit comments

Comments
 (0)