From: Wolfgang M. M. <wol...@us...> - 2004-08-03 15:26:13
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/storage/cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8244/src/org/exist/storage/cache Modified Files: LRDCache.java Log Message: Revised collection locking to fix various concurrency errors. It is now the responsibility of the caller to lock/unlock a collection. A collection can be retrieved and locked via the new openCollection() method provided by DBBroker. After reading/modifying the collection, it should be unlocked by calling Collection.release. The local XML:DB implementation and the XMLRPC interface have been changed to reflect the new collection locking rules. Index: LRDCache.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/cache/LRDCache.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** LRDCache.java 28 Jul 2004 18:54:54 -0000 1.6 --- LRDCache.java 3 Aug 2004 15:25:59 -0000 1.7 *************** *** 41,45 **** public class LRDCache extends GClockCache { ! private int totalReferences = 0; private int nextCleanup; --- 41,45 ---- public class LRDCache extends GClockCache { ! protected int totalReferences = 0; private int nextCleanup; |