Tsz Wo Nicholas Sze created RATIS-412: -----------------------------------------
Summary: In RaftLog, change lastCommitted to private Key: RATIS-412 URL: https://issues.apache.org/jira/browse/RATIS-412 Project: Ratis Issue Type: Improvement Components: server Reporter: Tsz Wo Nicholas Sze lastCommitted is only used once outside RaftLog. The usage is in a SegmentedRaftLog constructor. We should change lastCommitted to private. Then, SegmentedRaftLog could initialize lastCommitted using a RaftLog constructor (needs to add a parameter.) BTW, let's also rename lastCommitted to commitIndex so that it is consistent with other code. -- This message was sent by Atlassian JIRA (v7.6.3#76005)