Alexander Shraer created ZOOKEEPER-1638:
-------------------------------------------

             Summary: Redundant zk.getZKDatabase().clear();
                 Key: ZOOKEEPER-1638
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1638
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: Alexander Shraer
            Priority: Trivial
             Fix For: 3.5.0


Learner.syncWithLeader calls zk.getZKDatabase().clear() right before 
zk.getZKDatabase().deserializeSnapshot(leaderIs); Then the first thing 
deserializeSnapshot does is another clear(). 

Suggest to remove the clear() in syncWithLeader.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to