Mercurial > hg > MonetDB
changeset 86174:73247d49ccd2 Jul2021
When we load an empty bat, we can (and should) ignore any content in the theap.
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Wed, 27 Jul 2022 18:42:46 +0200 |
| parents | 254dcf085ee5 |
| children | e47e5552905e |
| files | gdk/gdk_bbp.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)
