[jboss-cvs] JBossAS SVN: r63978 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/session.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jul 11 12:56:57 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-07-11 12:56:57 -0400 (Wed, 11 Jul 2007)
New Revision: 63978
Modified:
trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheService.java
Log:
Store correct value type in sessionIds map
Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheService.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheService.java 2007-07-11 16:53:30 UTC (rev 63977)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheService.java 2007-07-11 16:56:57 UTC (rev 63978)
@@ -508,9 +508,10 @@
/**
* Gets the ids of all sessions in the underlying cache.
*
- * @return Set containing all of the session ids of sessions in the cache
- * (with any jvmRoute removed) or <code>null</code> if there
- * are no sessions in the cache.
+ * @return Map<String, String> containing all of the session ids of sessions in the cache
+ * (with any jvmRoute removed) as keys, and the identifier of the data owner for
+ * the session as value (or a <code>null</code> value if buddy
+ * replication is not enabled.) Will not return <code>null</code>.
*/
public Map getSessionIds() throws CacheException
{
@@ -529,7 +530,7 @@
if (webRoot != null)
{
Set ids = webRoot.getChildrenNames();
- storeSessionOwners(ids, owner, result);
+ storeSessionOwners(ids, owner.getFqn().getLastElement(), result);
}
}
}
More information about the jboss-cvs-commits
mailing list