Hello David Ribeiro Alves, Mike Percy, I'd like you to do a code review. Please visit
http://gerrit.cloudera.org:8080/4333 to review the following change. Change subject: KUDU-1135 (part 1): avoid flushing cmeta to disk twice when voting ...................................................................... KUDU-1135 (part 1): avoid flushing cmeta to disk twice when voting This adds a flag to the term advancement calls which prevents it from flushing to disk. We use this flag during voting when we know we are about to flush our vote to disk immediately following the term advancement. This is part 1: another patch will do the same optimization for the case of starting an election. Change-Id: Iecc55bc9e96dcdc918ede1190b7cbac719f95506 --- M src/kudu/consensus/consensus_meta.cc M src/kudu/consensus/consensus_meta.h M src/kudu/consensus/raft_consensus.cc M src/kudu/consensus/raft_consensus.h M src/kudu/consensus/raft_consensus_quorum-test.cc M src/kudu/consensus/raft_consensus_state.cc M src/kudu/consensus/raft_consensus_state.h 7 files changed, 80 insertions(+), 14 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/33/4333/1 -- To view, visit http://gerrit.cloudera.org:8080/4333 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iecc55bc9e96dcdc918ede1190b7cbac719f95506 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Todd Lipcon <t...@apache.org> Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org> Gerrit-Reviewer: Mike Percy <mpe...@apache.org>