Commit eaa9e5cd authored by skypexu's avatar skypexu Committed by Willem
Browse files

Check snapshot term. (#61)

Fix raft_begin_load_snapshot last_included_term handling
parent aaa5ff81
......@@ -1280,7 +1280,7 @@ int raft_begin_load_snapshot(
if (last_included_index == -1)
return -1;
if (last_included_index == 0 || last_included_index == 0)
if (last_included_index == 0 || last_included_term == 0)
return -1;
/* loading the snapshot will break cluster safety */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment