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

    https://github.com/apache/zookeeper/pull/447#discussion_r205921331
  
    --- Diff: src/java/main/org/apache/zookeeper/server/SessionTracker.java ---
    @@ -47,21 +47,20 @@
         long createSession(int sessionTimeout);
     
         /**
    -     * Add a global session to those being tracked.
    +     * Track the session expire, not add to ZkDb.
          * @param id sessionId
          * @param to sessionTimeout
          * @return whether the session was newly added (if false, already 
existed)
          */
    -    boolean addGlobalSession(long id, int to);
    +    boolean trackSession(long id, int to);
    --- End diff --
    
    Local session tracker will start track session when create the session.


---

Reply via email to