Hitoshi Mitake created ZOOKEEPER-2233:
-----------------------------------------
Summary: Invalid description in the comment of
LearnerHandler.syncFollower()
Key: ZOOKEEPER-2233
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2233
Project: ZooKeeper
Issue Type: Improvement
Reporter: Hitoshi Mitake
Assignee: Hitoshi Mitake
Priority: Trivial
LearnerHandler.syncFollower() has a comment like below:
When leader election is completed, the leader will set its
lastProcessedZxid to be (epoch < 32). There will be no txn associated
with this zxid.
However, IIUC, the expression "epoch < 32" (comparison) should be "epoch << 32"
(bitshift).
Of course the error is very trivial but it was a little bit confusing for me,
so I'd like to fix it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)