//public final static long keepFreeMem = 20 * 1024 * 1024;
// input values
// input values
protectedintkeylength;// the length of the primary key
protectedintkeylength;// the length of the primary key
@ -414,12 +414,18 @@ public class HeapReader {
index.remove(key);
index.remove(key);
returnnull;
returnnull;
}
}
if(MemoryControl.available()<len*2+keepFreeMem){
longmemr=len+index.row().primaryKeyLength+64;
if(!MemoryControl.request(len*2+keepFreeMem,true))thrownewRowSpaceExceededException(len*2+keepFreeMem,"HeapReader.get()");// not enough memory available for this blob
if(MemoryControl.available()<memr){
if(!MemoryControl.request(memr,true))thrownewRowSpaceExceededException(memr,"HeapReader.get()/check");// not enough memory available for this blob