We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e95a5 commit ef777cbCopy full SHA for ef777cb
src/backend/statistics/mcv.c
@@ -911,10 +911,9 @@ statext_mcv_serialize(MCVList *mcvlist, VacAttrStats **stats)
911
for (i = 0; i < mcvlist->nitems; i++)
912
{
913
MCVItem *mcvitem = &mcvlist->items[i];
914
- int itemlen = ITEM_SIZE(dim);
915
916
/* don't write beyond the allocated space */
917
- Assert(ptr <= (endptr - itemlen));
+ Assert(ptr <= (endptr - ITEM_SIZE(dim)));
918
919
/* copy NULL and frequency flags into the serialized MCV */
920
memcpy(ptr, mcvitem->isnull, sizeof(bool) * ndims);
0 commit comments