Github user eribeiro commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/632#discussion_r224212868
  
    --- Diff: 
zookeeper-server/src/main/java/org/apache/zookeeper/server/DataNode.java ---
    @@ -37,6 +37,14 @@
      * 
      */
     public class DataNode implements Record {
    +
    +    // the digest value of this node, calculated from path, data and stat
    +    private long digest;
    +
    +    // indicate if the digest of this node is up to date or not, used to 
    +    // optimize the performance.
    +    boolean digestCached;
    --- End diff --
    
    `volatile boolean digestChanged;` ?


---

Reply via email to