From: Wolfgang M. M. <wol...@us...> - 2004-07-12 17:17:52
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/util/hashtable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32480/src/org/exist/util/hashtable Modified Files: Long2ObjectHashMap.java Log Message: Various concurrency-related bug fixes: * there has been a conflicting access to the owner property in class DOMFile: in some cases, a second thread set the property to itself while another thread has been in the process of writing data. As the owner object is used to determine the current page in the document, the writing thread used a wrong data page (for a very short period). Thus, one or two document nodes got lost. * a number of small caching problems in dom.dbx led to inconsistencies in the db. Also, queries using string-equality comparisons did not use the cache, so increasing the cache size had no positive effect on query speed. Index: Long2ObjectHashMap.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/util/hashtable/Long2ObjectHashMap.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Long2ObjectHashMap.java 13 Dec 2003 12:33:21 -0000 1.2 --- Long2ObjectHashMap.java 12 Jul 2004 17:17:43 -0000 1.3 *************** *** 100,104 **** return null; } ! public Object remove(long key) { int idx = hash(key) % tabSize; --- 100,104 ---- return null; } ! public Object remove(long key) { int idx = hash(key) % tabSize; |