From: Wolfgang M. M. <wol...@us...> - 2004-08-12 18:54:29
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/collections In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11331/src/org/exist/collections Modified Files: Collection.java Log Message: Switched back to simple LRU page replacement strategy for document data in dom.dbx. As every page is accessed at most two times during storage, the LRDCache did not work very well. Improved the LRU implementation. Index: Collection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/collections/Collection.java,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** Collection.java 10 Aug 2004 20:27:15 -0000 1.49 --- Collection.java 12 Aug 2004 18:54:20 -0000 1.50 *************** *** 842,845 **** --- 842,847 ---- source = new InputSource(new StringReader(data)); XMLReader currentReader = getReader(broker); + if(currentReader == null) + throw new EXistException("No reader!"); DocumentImpl oldDoc = (DocumentImpl)documents.get(name); DocumentImpl document = new DocumentImpl(broker, name, this); |