From: Dain S. <dsu...@us...> - 2002-06-19 17:16:34
|
User: dsundstrom Date: 02/06/19 10:16:33 Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc ReadAheadCache.java Log: Only allows results with two or more PKs to be added to the cache. Revision Changes Path 1.8 +2 -2 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/ReadAheadCache.java Index: ReadAheadCache.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/ReadAheadCache.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ReadAheadCache.java 19 Jun 2002 03:07:32 -0000 1.7 +++ ReadAheadCache.java 19 Jun 2002 17:16:33 -0000 1.8 @@ -31,7 +31,7 @@ * basis. The read ahead data for each entity is stored with a soft reference. * * @author <a href="mailto:da...@da...">Dain Sundstrom</a> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ */ public class ReadAheadCache { /** @@ -81,7 +81,7 @@ List results, JDBCReadAheadMetaData readahead) { - if(results.isEmpty()) { + if(results.size() < 2) { // nothing to see here... move along return; } |