Changeset: a7375c6c0c78 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a7375c6c0c78
Modified Files:
        monetdb5/mal/mal_runtime.c
Branch: default
Log Message:

Only consider index sizes for non-empty bats.


diffs (18 lines):

diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c
--- a/monetdb5/mal/mal_runtime.c
+++ b/monetdb5/mal/mal_runtime.c
@@ -229,9 +229,11 @@ getBatSpace(BAT *b){
        if( b == NULL)
                return 0;
        space += BATcount(b) * b->T->width;
-       if( b->T->vheap) space += heapinfo(b->T->vheap, abs(b->batCacheid)); 
-       if(b->T) space += hashinfo(b->T->hash, abs(b->batCacheid)); 
-       space += IMPSimprintsize(b);
+       if( space){
+               if( b->T->vheap) space += heapinfo(b->T->vheap, 
abs(b->batCacheid)); 
+               if( b->T) space += hashinfo(b->T->hash, abs(b->batCacheid)); 
+               space += IMPSimprintsize(b);
+       }
        return space;
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to