From: Wolfgang M. M. <wol...@us...> - 2004-07-05 20:03:24
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/dom In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25405/src/org/exist/dom Modified Files: ElementImpl.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: ElementImpl.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/dom/ElementImpl.java,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** ElementImpl.java 30 Jun 2004 15:56:59 -0000 1.41 --- ElementImpl.java 5 Jul 2004 20:02:46 -0000 1.42 *************** *** 67,71 **** protected short attributes = 0; protected int children = 0; - protected long firstChild = -1; protected Map namespaceMappings = null; --- 67,70 ---- *************** *** 110,114 **** public void clear() { super.clear(); - firstChild = -1; gid = 0; children = 0; --- 109,112 ---- *************** *** 498,505 **** if (gid == 0) return 0; ! if (firstChild > -1) ! return firstChild; ! firstChild = XMLUtil.getFirstChildId(ownerDocument, gid); ! return firstChild; } --- 496,500 ---- if (gid == 0) return 0; ! return XMLUtil.getFirstChildId(ownerDocument, gid); } |