From: Wolfgang M. M. <wol...@us...> - 2004-07-05 20:03:24
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/collections In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25405/src/org/exist/collections Modified Files: Collection.java Log Message: Fixed concurrency issue in the dom.dbx node store: in some cases, a reading thread could interfere with a writing thread. As a result, some data pages got lost. Index: Collection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/collections/Collection.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Collection.java 2 Jul 2004 16:53:53 -0000 1.33 --- Collection.java 5 Jul 2004 20:02:46 -0000 1.34 *************** *** 870,877 **** if(oldDoc == null) addDocument(broker, document); broker.addDocument(this, document); broker.closeDocument(); broker.flush(); ! // if we are running in privileged mode (e.g. backup/restore) // notify the SecurityManager about changes --- 870,878 ---- if(oldDoc == null) addDocument(broker, document); + // broker.checkTree(document); broker.addDocument(this, document); broker.closeDocument(); broker.flush(); ! LOG.debug("document stored."); // if we are running in privileged mode (e.g. backup/restore) // notify the SecurityManager about changes |