[seam-commits] Seam SVN: r7169 - trunk/examples/wiki/src/main/org/jboss/seam/wiki/connectors/cache.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Jan 21 18:49:11 EST 2008
Author: christian.bauer at jboss.com
Date: 2008-01-21 18:49:10 -0500 (Mon, 21 Jan 2008)
New Revision: 7169
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/connectors/cache/ConnectorCache.java
Log:
Fix possible non-threadsafe map access, async updater might write after purge
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/connectors/cache/ConnectorCache.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/connectors/cache/ConnectorCache.java 2008-01-21 23:38:47 UTC (rev 7168)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/connectors/cache/ConnectorCache.java 2008-01-21 23:49:10 UTC (rev 7169)
@@ -70,6 +70,7 @@
// Meanwhile, update the timestamp so that the next caller doesn't also start asynchronous updating
// .. we expect to be finished with that before the next caller runs into a cache timeout again!
+ cacheKey.setAccessTimestamp(currentTime);
cacheKey.setUpdateTimestamp(currentTime);
} else {
More information about the seam-commits
mailing list