Changeset: 1a55a7f14b36 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1a55a7f14b36
Modified Files:
        gdk/gdk_batop.c
Branch: Aug2024
Log Message:

Set heap size when we're done writing.


diffs (19 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -507,7 +507,6 @@ append_msk_bat(BAT *b, BATiter *ni, stru
        uint32_t boff = b->batCount % 32;
        uint32_t *bp = (uint32_t *) b->theap->base + b->batCount / 32;
        b->batCount += ci->ncand;
-       b->theap->free = ((b->batCount + 31) / 32) * 4;
        if (ci->tpe == cand_dense) {
                const uint32_t *np;
                uint32_t noff, mask;
@@ -660,6 +659,7 @@ append_msk_bat(BAT *b, BATiter *ni, stru
                } while (!is_oid_nil(o));
        }
        b->theap->dirty = true;
+       b->theap->free = ((b->batCount + 31) / 32) * 4;
        MT_lock_unset(&b->theaplock);
        return GDK_SUCCEED;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to