From: Wolfgang M. M. <wol...@us...> - 2004-08-03 15:26:13
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8244/src/org/exist/http Modified Files: RESTServer.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: RESTServer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/RESTServer.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** RESTServer.java 2 Jul 2004 16:53:56 -0000 1.14 --- RESTServer.java 3 Aug 2004 15:26:00 -0000 1.15 *************** *** 395,399 **** // remove the collection LOG.debug("removing collection " + path); ! broker.removeCollection(path); response = new Response(); response.setDescription("Collection " + path + " removed."); --- 395,399 ---- // remove the collection LOG.debug("removing collection " + path); ! broker.removeCollection(collection); response = new Response(); response.setDescription("Collection " + path + " removed."); |