Mike Percy has submitted this change and it was merged. Change subject: consensus: Add DCHECK(is_locked()) in all unlocked methods ......................................................................
consensus: Add DCHECK(is_locked()) in all unlocked methods Now that RaftConsensus owns 'lock_' we can easily implement these kinds of basic hygenic checks. Change-Id: I3364607e6778e6495e40d7ad36ea1850b022c444 Reviewed-on: http://gerrit.cloudera.org:8080/7013 Tested-by: Kudu Jenkins Reviewed-by: Mike Percy <mpe...@apache.org> --- M src/kudu/consensus/raft_consensus.cc M src/kudu/consensus/raft_consensus.h 2 files changed, 44 insertions(+), 2 deletions(-) Approvals: Mike Percy: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/7013 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3364607e6778e6495e40d7ad36ea1850b022c444 Gerrit-PatchSet: 9 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Mike Percy <mpe...@apache.org> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: David Ribeiro Alves <davidral...@gmail.com> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Mike Percy <mpe...@apache.org> Gerrit-Reviewer: Todd Lipcon <t...@apache.org>