Changeset: a76109313845 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a76109313845
Modified Files:
        gdk/gdk_bat.c
Branch: Jul2021
Log Message:

Use bat count, not heap size as basis for copying.  We might have a bat slice.


diffs (12 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -851,7 +851,7 @@ COLcopy(BAT *b, int tt, bool writable, r
                        if (bn->tvheap && HEAPextend(bn->tvheap, bi.vhfree, 
true) != GDK_SUCCEED) {
                                goto bunins_failed;
                        }
-                       memcpy(bn->theap->base, bi.base, bi.hfree);
+                       memcpy(bn->theap->base, bi.base, bi.count << bi.shift);
                        bn->theap->free = bi.hfree;
                        bn->theap->dirty = true;
                        if (bn->tvheap) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to