Changeset: 8874695b412c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8874695b412c
Modified Files:
        monetdb5/extras/crackers/crackers_selecthol_ops.mx
Branch: holindex
Log Message:

Change the weight only if it is not negative.
I added this check, because a negative weight means that we reached the optimal 
index and, thus, there is no point to change this weight anymore.


diffs (13 lines):

diff --git a/monetdb5/extras/crackers/crackers_selecthol_ops.mx 
b/monetdb5/extras/crackers/crackers_selecthol_ops.mx
--- a/monetdb5/extras/crackers/crackers_selecthol_ops.mx
+++ b/monetdb5/extras/crackers/crackers_selecthol_ops.mx
@@ -558,7 +558,8 @@ createView:
        }
        countBatElements=BATcount(b);
        /*fprintf(stderr,"BATcount(b)=%d\n",countBatElements);*/
-       FN->weight = changeWeight(FN,countBatElements,L1);
+       if(FN->weight >= 0)
+               FN->weight = changeWeight(FN,countBatElements,L1);
        /*if(FN->weight <0)
                deleteNode(FrequencyStructA,FN->bid);
        */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to