From: Mike S. <ms...@us...> - 2007-04-03 13:03:51
|
Update of /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv19821/Sources/er/extensions Modified Files: ERXRecursiveBatchFetching.java Log Message: lock the database context Index: ERXRecursiveBatchFetching.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXRecursiveBatchFetching.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ERXRecursiveBatchFetching.java 14 Jan 2007 14:02:29 -0000 1.11 --- ERXRecursiveBatchFetching.java 3 Apr 2007 13:03:35 -0000 1.12 *************** *** 310,314 **** EODatabaseContext dbContext = ERXEOAccessUtilities.databaseContextForObject(eo); ! ERXEOAccessUtilities.batchFetchRelationship(dbContext, relationship, sourceObjects, ec, skipFaultedSourceObjects); } --- 310,320 ---- EODatabaseContext dbContext = ERXEOAccessUtilities.databaseContextForObject(eo); ! dbContext.lock(); ! try { ! ERXEOAccessUtilities.batchFetchRelationship(dbContext, relationship, sourceObjects, ec, skipFaultedSourceObjects); ! } ! finally { ! dbContext.unlock(); ! } } |