From: Wolfgang M. M. <wol...@us...> - 2004-07-19 13:06:32
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25772/src/org/exist/xquery Modified Files: Function.java Log Message: Fixed another locking issue which led to dirty reads if one thread tried to read index data from elements.dbx while another thread had been updating exactly the same data pages. Index: Function.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/Function.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Function.java 28 May 2004 10:54:12 -0000 1.4 --- Function.java 19 Jul 2004 13:06:24 -0000 1.5 *************** *** 98,101 **** --- 98,103 ---- */ public int returnsType() { + if(mySignature == null) + return Type.ITEM; // Type is not known yet if(mySignature.getReturnType() == null) throw new IllegalArgumentException("Return type for function " + mySignature.getName() + |