Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/22387


Change subject: [consensus] micro-optimisation on RequestVote()
......................................................................

[consensus] micro-optimisation on RequestVote()

This patch simplifies the logic around 'update_guard' in
RaftConsensus::RequestVote() since unique_lock<>::try_lock() already
reports if the underlying locking primitive has been acquired.  It also
fixes compilation warning issued by GCC13/14 about ignoring the return
value of the unique_lock<>::try_lock() method.

This patch doesn't contain any functional modifications.

Change-Id: I115d88b90ce6ec94737bb85f1003cf943e1ab9e0
---
M src/kudu/consensus/raft_consensus.cc
1 file changed, 8 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/87/22387/1
--
To view, visit http://gerrit.cloudera.org:8080/22387
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I115d88b90ce6ec94737bb85f1003cf943e1ab9e0
Gerrit-Change-Number: 22387
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to