Changeset: 335186bd5cc5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/335186bd5cc5
Modified Files:
        monetdb5/modules/kernel/bat5.c
Branch: default
Log Message:

Unfix after iterator ends


diffs (21 lines):

diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -912,8 +912,6 @@ BKCshrinkBAT(bat *ret, const bat *bid, c
                }
                }
        }
-       BBPunfix(b->batCacheid);
-       BBPunfix(bs->batCacheid);
 
        BATsetcount(bn, cnt);
        bn->tsorted = false;
@@ -924,6 +922,8 @@ BKCshrinkBAT(bat *ret, const bat *bid, c
        bn->tnil = false;               /* can't be sure if values deleted */
        *ret = bn->batCacheid;
        bat_iterator_end(&bi);
+       BBPunfix(b->batCacheid);
+       BBPunfix(bs->batCacheid);
        BBPkeepref(bn);
        return MAL_SUCCEED;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to