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
30e0ed9a
Unverified
Commit
30e0ed9a
authored
Aug 16, 2022
by
Ozan Tezcan
Committed by
GitHub
Aug 16, 2022
Browse files
Delete leftover variable in struct raft_read_request_t (#116)
Leftover after #105
parent
499dee16
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/raft_private.h
View file @
30e0ed9a
...
@@ -16,7 +16,6 @@ struct raft_log_impl;
...
@@ -16,7 +16,6 @@ struct raft_log_impl;
typedef
struct
raft_read_request
{
typedef
struct
raft_read_request
{
raft_index_t
read_idx
;
raft_index_t
read_idx
;
raft_term_t
read_term
;
raft_msg_id_t
msg_id
;
raft_msg_id_t
msg_id
;
raft_read_request_callback_f
cb
;
raft_read_request_callback_f
cb
;
...
...
src/raft_server.c
View file @
30e0ed9a
...
@@ -1921,7 +1921,6 @@ int raft_recv_read_request(raft_server_t* me, raft_read_request_callback_f cb, v
...
@@ -1921,7 +1921,6 @@ int raft_recv_read_request(raft_server_t* me, raft_read_request_callback_f cb, v
raft_read_request_t
*
req
=
raft_malloc
(
sizeof
(
*
req
));
raft_read_request_t
*
req
=
raft_malloc
(
sizeof
(
*
req
));
req
->
read_idx
=
raft_get_current_idx
(
me
);
req
->
read_idx
=
raft_get_current_idx
(
me
);
req
->
read_term
=
me
->
current_term
;
req
->
msg_id
=
++
me
->
msg_id
;
req
->
msg_id
=
++
me
->
msg_id
;
req
->
cb
=
cb
;
req
->
cb
=
cb
;
req
->
cb_arg
=
cb_arg
;
req
->
cb_arg
=
cb_arg
;
...
...
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