From: Wolfgang M. M. <wol...@us...> - 2004-03-29 14:27:16
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/storage/cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31676/src/org/exist/storage/cache Modified Files: ClockCache.java GClockCache.java Log Message: * Fixed stability issues: collection pointers got corrupted occasionally, resulting in ArrayIndexOutOfBoundsExceptions. * Added check for file format versions: the database will throw an exception if the database files are incompatible with the current eXist version. Index: GClockCache.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/cache/GClockCache.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** GClockCache.java 29 Jan 2004 15:06:45 -0000 1.8 --- GClockCache.java 29 Mar 2004 14:15:12 -0000 1.9 *************** *** 48,52 **** protected int hits = 0, fails = 0; ! protected long syncPeriod = 30000; protected long lastSync = System.currentTimeMillis(); --- 48,52 ---- protected int hits = 0, fails = 0; ! protected long syncPeriod = 20000; protected long lastSync = System.currentTimeMillis(); *************** *** 55,59 **** this.items = new Cacheable[size]; this.map = new Long2ObjectHashMap(size); - //this.map = new Long2ObjectOpenHashMap(size); } --- 55,58 ---- Index: ClockCache.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/cache/ClockCache.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ClockCache.java 2 Feb 2004 15:30:35 -0000 1.10 --- ClockCache.java 29 Mar 2004 14:15:12 -0000 1.11 *************** *** 46,50 **** private long lastSync = System.currentTimeMillis(); ! private long syncPeriod = 15000; public ClockCache(int size) { --- 46,50 ---- private long lastSync = System.currentTimeMillis(); ! private long syncPeriod = 30000; public ClockCache(int size) { |