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
Willemt Raft
Commits
6fbdcf34
Commit
6fbdcf34
authored
Aug 16, 2018
by
Willem Thiart
Browse files
Virtraft: use new raft_begin_snapshot
parent
d2784639
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/virtraft2.py
View file @
6fbdcf34
...
...
@@ -699,7 +699,7 @@ class RaftServer(object):
# logger.warning('{} snapshotting'.format(self))
# entries_before = lib.raft_get_log_count(self.raft)
e
=
lib
.
raft_begin_snapshot
(
self
.
raft
)
e
=
lib
.
raft_begin_snapshot
(
self
.
raft
,
0
)
if
e
!=
0
:
return
...
...
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