Changeset: 3b0fcc2b7042 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3b0fcc2b7042
Modified Files:
monetdb5/optimizer/opt_garbageCollector.c
Branch: default
Log Message:
Set the correct length of the MAL block
to ease others to pick it up for e.g. progress monitoring
diffs (16 lines):
diff --git a/monetdb5/optimizer/opt_garbageCollector.c
b/monetdb5/optimizer/opt_garbageCollector.c
--- a/monetdb5/optimizer/opt_garbageCollector.c
+++ b/monetdb5/optimizer/opt_garbageCollector.c
@@ -51,10 +51,10 @@ OPTgarbageCollectorImplementation(Client
// move SQL query to front
p = NULL;
- for(i = 2; i< limit; i++){
+ for(i = limit; i> 2; i--){
if( getModuleId(mb->stmt[i]) == querylogRef &&
getFunctionId(mb->stmt[i]) == defineRef ){
p= mb->stmt[i];
- p = pushInt(mb,p,mb->stop);
+ p = pushInt(mb,p,i+1);
break;
}
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list