Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
340df36d
Commit
340df36d
authored
May 27, 2020
by
Yossi Gottlieb
Browse files
Fix: wrong index on quorum reads.
parent
d23f3903
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
340df36d
...
...
@@ -1626,7 +1626,7 @@ void raft_queue_read_request(raft_server_t* me_, func_read_request_callback_f cb
raft_read_request_t
*
req
=
__raft_malloc
(
sizeof
(
raft_read_request_t
));
req
->
read_idx
=
raft_get_c
ommi
t_idx
(
me_
);
req
->
read_idx
=
raft_get_c
urren
t_idx
(
me_
);
req
->
read_term
=
raft_get_current_term
(
me_
);
req
->
msg_id
=
++
me
->
msg_id
;
req
->
cb
=
cb
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment