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
c1b8d2e6
Commit
c1b8d2e6
authored
Nov 18, 2018
by
Yossi Gottlieb
Browse files
Fix memory sanitizer error due to test problem.
parent
01cc57de
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_snapshotting.c
View file @
c1b8d2e6
...
...
@@ -540,6 +540,10 @@ void TestRaft_leader_sends_appendentries_when_node_next_index_was_compacted(CuTe
CuAssertIntEquals
(
tc
,
0
,
raft_end_load_snapshot
(
r
));
CuAssertIntEquals
(
tc
,
3
,
raft_get_current_idx
(
r
));
/* reconfigure nodes based on config data "embedded in snapshot" */
node
=
raft_add_node
(
r
,
NULL
,
2
,
0
);
raft_add_node
(
r
,
NULL
,
3
,
0
);
/* node wants an entry that was compacted */
raft_node_set_next_idx
(
node
,
raft_get_current_idx
(
r
));
...
...
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