Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ff67b6f

Browse files
author
Arseny Kositsyn
committed
[PGPRO-11599] Fixed CI crashes at hardcore level.
Tags: rum
1 parent f4140aa commit ff67b6f

File tree

6 files changed

+96
-0
lines changed

6 files changed

+96
-0
lines changed

‎src/tidbitmap/tidbitmap12.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
733733
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
734734
{
735735
if (page->ischunk)
736+
{
737+
/*
738+
* NOTE: This location is different from the
739+
* original tidbitmap.c. This check is necessary
740+
* to avoid warnings from scan-build.
741+
*/
742+
Assert(tbm->schunks);
736743
tbm->schunks[nchunks++] = page;
744+
}
737745
else
746+
{
747+
/*
748+
* NOTE: This location is different from the
749+
* original tidbitmap.c. This check is necessary
750+
* to avoid warnings from scan-build.
751+
*/
752+
Assert(tbm->spages);
738753
tbm->spages[npages++] = page;
754+
}
739755
}
740756
Assert(npages == tbm->npages);
741757
Assert(nchunks == tbm->nchunks);

‎src/tidbitmap/tidbitmap13.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
733733
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
734734
{
735735
if (page->ischunk)
736+
{
737+
/*
738+
* NOTE: This location is different from the
739+
* original tidbitmap.c. This check is necessary
740+
* to avoid warnings from scan-build.
741+
*/
742+
Assert(tbm->schunks);
736743
tbm->schunks[nchunks++] = page;
744+
}
737745
else
746+
{
747+
/*
748+
* NOTE: This location is different from the
749+
* original tidbitmap.c. This check is necessary
750+
* to avoid warnings from scan-build.
751+
*/
752+
Assert(tbm->spages);
738753
tbm->spages[npages++] = page;
754+
}
739755
}
740756
Assert(npages == tbm->npages);
741757
Assert(nchunks == tbm->nchunks);

‎src/tidbitmap/tidbitmap14.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
733733
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
734734
{
735735
if (page->ischunk)
736+
{
737+
/*
738+
* NOTE: This location is different from the
739+
* original tidbitmap.c. This check is necessary
740+
* to avoid warnings from scan-build.
741+
*/
742+
Assert(tbm->schunks);
736743
tbm->schunks[nchunks++] = page;
744+
}
737745
else
746+
{
747+
/*
748+
* NOTE: This location is different from the
749+
* original tidbitmap.c. This check is necessary
750+
* to avoid warnings from scan-build.
751+
*/
752+
Assert(tbm->spages);
738753
tbm->spages[npages++] = page;
754+
}
739755
}
740756
Assert(npages == tbm->npages);
741757
Assert(nchunks == tbm->nchunks);

‎src/tidbitmap/tidbitmap15.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
733733
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
734734
{
735735
if (page->ischunk)
736+
{
737+
/*
738+
* NOTE: This location is different from the
739+
* original tidbitmap.c. This check is necessary
740+
* to avoid warnings from scan-build.
741+
*/
742+
Assert(tbm->schunks);
736743
tbm->schunks[nchunks++] = page;
744+
}
737745
else
746+
{
747+
/*
748+
* NOTE: This location is different from the
749+
* original tidbitmap.c. This check is necessary
750+
* to avoid warnings from scan-build.
751+
*/
752+
Assert(tbm->spages);
738753
tbm->spages[npages++] = page;
754+
}
739755
}
740756
Assert(npages == tbm->npages);
741757
Assert(nchunks == tbm->nchunks);

‎src/tidbitmap/tidbitmap16.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
733733
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
734734
{
735735
if (page->ischunk)
736+
{
737+
/*
738+
* NOTE: This location is different from the
739+
* original tidbitmap.c. This check is necessary
740+
* to avoid warnings from scan-build.
741+
*/
742+
Assert(tbm->schunks);
736743
tbm->schunks[nchunks++] = page;
744+
}
737745
else
746+
{
747+
/*
748+
* NOTE: This location is different from the
749+
* original tidbitmap.c. This check is necessary
750+
* to avoid warnings from scan-build.
751+
*/
752+
Assert(tbm->spages);
738753
tbm->spages[npages++] = page;
754+
}
739755
}
740756
Assert(npages == tbm->npages);
741757
Assert(nchunks == tbm->nchunks);

‎src/tidbitmap/tidbitmap17.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,25 @@ tbm_begin_iterate(TIDBitmap *tbm)
734734
while ((page = pagetable_iterate(tbm->pagetable, &i)) != NULL)
735735
{
736736
if (page->ischunk)
737+
{
738+
/*
739+
* NOTE: This location is different from the
740+
* original tidbitmap.c. This check is necessary
741+
* to avoid warnings from scan-build.
742+
*/
743+
Assert(tbm->schunks);
737744
tbm->schunks[nchunks++] = page;
745+
}
738746
else
747+
{
748+
/*
749+
* NOTE: This location is different from the
750+
* original tidbitmap.c. This check is necessary
751+
* to avoid warnings from scan-build.
752+
*/
753+
Assert(tbm->spages);
739754
tbm->spages[npages++] = page;
755+
}
740756
}
741757
Assert(npages == tbm->npages);
742758
Assert(nchunks == tbm->nchunks);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /