Commit 961d9c98 authored by Patrick D. Hunt's avatar Patrick D. Hunt
Browse files

ZOOKEEPER-1622. session ids will be negative in the year 2022 (Eric Newton via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/branches/branch-3.4@1551118 13f79535-47bb-0310-9956-ffa450edef68
parent 1129baf3
......@@ -188,6 +188,9 @@ BUGFIXES:
ZOOKEEPER-1839. Deadlock in NettyServerCnxn (Rakesh R via michim)
ZOOKEEPER-1622. session ids will be negative in the year 2022
(Eric Newton via phunt)
IMPROVEMENTS:
ZOOKEEPER-1564. Allow JUnit test build with IBM Java
......
......@@ -74,7 +74,7 @@ public class SessionTrackerImpl extends Thread implements SessionTracker {
public static long initializeNextSession(long id) {
long nextSid = 0;
nextSid = (System.currentTimeMillis() << 24) >> 8;
nextSid = (System.currentTimeMillis() << 24) >>> 8;
nextSid = nextSid | (id <<56);
return nextSid;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment