424562 JDBCSessionManager.setNodeIdInSessionId(true) does not work

This commit is contained in:
Jan Bartel 2014-01-10 16:25:38 +11:00
parent 29dec203ba
commit f59b3db0e4
1 changed files with 2 additions and 2 deletions

View File

@ -963,7 +963,7 @@ public class JDBCSessionManager extends AbstractSessionManager
long now = System.currentTimeMillis();
connection.setAutoCommit(true);
statement.setString(1, rowId); //rowId
statement.setString(2, session.getId()); //session id
statement.setString(2, session.getClusterId()); //session id
statement.setString(3, session.getCanonicalContext()); //context path
statement.setString(4, session.getVirtualHost()); //first vhost
statement.setString(5, getSessionIdManager().getWorkerName());//my node id
@ -1011,7 +1011,7 @@ public class JDBCSessionManager extends AbstractSessionManager
{
long now = System.currentTimeMillis();
connection.setAutoCommit(true);
statement.setString(1, data.getId());
statement.setString(1, data.getClusterId());
statement.setString(2, getSessionIdManager().getWorkerName());//my node id
statement.setLong(3, data.getAccessed());//accessTime
statement.setLong(4, data.getLastAccessedTime()); //lastAccessTime