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

When we load an empty bat, we can (and should) ignore any content in the theap.


diffs (12 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -555,6 +555,8 @@ vheapinit(BAT *b, const char *buf, int h
                        TRC_CRITICAL(GDK, "invalid format for BBP.dir on line 
%d", lineno);
                        return -1;
                }
+               if (b->batCount == 0)
+                       free = 0;
                if (b->ttype >= 0 &&
                    ATOMstorage(b->ttype) == TYPE_str &&
                    free < GDK_STRHASHTABLE * sizeof(stridx_t) + BATTINY * 
GDK_VARALIGN)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to