hanm commented on a change in pull request #1172: ZOOKEEPER-3594: Ability to
skip proposing requests with error transactions
URL: https://github.com/apache/zookeeper/pull/1172#discussion_r360631308
##########
File path:
zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java
##########
@@ -105,6 +111,14 @@ public Request(long sessionId, int xid, int type,
TxnHeader hdr, Record txn, lon
public QuorumVerifier qv = null;
+ public boolean isFromLeader() {
+ return owner == ServerCnxn.me;
+ }
+
+ public boolean isFromFollower() {
Review comment:
this method is not used.. is this needed?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services