From: Wolfgang M. M. <wol...@us...> - 2004-08-16 19:53:56
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/soap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19982/src/org/exist/soap Modified Files: AdminSoapBindingImpl.java Log Message: Removed the cache sync events that had been triggered by every database file independantly. Instead, the global BrokerPool will now trigger all sync events (through the SyncDaemon background thread). It distinguishes between minor and major syncs. Major syncs write all caches to disk, minor syncs only write the main document store (dom.dbx + collections.dbx). Minor syncs occur every 2 seconds, major syncs after a configurable period of time. As BrokerPool controls all sync events, it is guaranteed that only one cache is written at the same time. This has a positive effect on indexing performance. Index: AdminSoapBindingImpl.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/soap/AdminSoapBindingImpl.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** AdminSoapBindingImpl.java 3 Aug 2004 15:25:59 -0000 1.16 --- AdminSoapBindingImpl.java 16 Aug 2004 19:53:47 -0000 1.17 *************** *** 17,20 **** --- 17,21 ---- import org.exist.storage.BrokerPool; import org.exist.storage.DBBroker; + import org.exist.storage.sync.Sync; import org.exist.util.LockException; import org.exist.xquery.XPathException; *************** *** 80,84 **** broker.saveCollection(coll); broker.flush(); ! broker.sync(); return true; } catch (Exception e) { --- 81,85 ---- broker.saveCollection(coll); broker.flush(); ! broker.sync(Sync.MINOR_SYNC); return true; } catch (Exception e) { |