Backport of fix to 3.x for #131 - Memory issue (Hard refs) when using findIterate

This commit is contained in:
Rob Bygrave
2014-05-28 00:21:57 +12:00
parent 7d14ede1b9
commit f91789886c
17 changed files with 125 additions and 375 deletions
@@ -73,7 +73,6 @@ public class CQueryFetchIds {
private int rowCount;
private final int maxRows;
private final int bgFetchAfter;
/**
* Create the Sql select based on the request.
@@ -86,7 +85,6 @@ public class CQueryFetchIds {
this.query = request.getQuery();
this.sql = sql;
this.maxRows = query.getMaxRows();
this.bgFetchAfter = query.getBackgroundFetchAfter();
query.setGeneratedSql(sql);
@@ -184,9 +182,6 @@ public class CQueryFetchIds {
hasMoreRows = rset.next();
break;
} else if (bgFetchAfter > 0 && rowCount >= bgFetchAfter) {
useBackgroundToContinueFetch = true;
break;
}
}