Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c885e4a

Browse files
committed
Remove duplicate code in brin_memtuple_initialize
Commit 8bf7496 moved some of the code from brin_new_memtuple to brin_memtuple_initialize, but this resulted in some of the code being duplicate. Fix by removing the duplicate lines and backpatch to 10. Author: Tomas Vondra Backpatch-through: 10 Discussion: https://postgr.es/m/5eb50c97-9a8e-b691-8c40-1b2a55611c4c%40enterprisedb.com
1 parent afce790 commit c885e4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backend/access/brin/brin_tuple.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,6 @@ brin_memtuple_initialize(BrinMemTuple *dtuple, BrinDesc *brdesc)
492492
sizeof(BrinValues) * brdesc->bd_tupdesc->natts);
493493
for (i = 0; i < brdesc->bd_tupdesc->natts; i++)
494494
{
495-
dtuple->bt_columns[i].bv_allnulls = true;
496-
dtuple->bt_columns[i].bv_hasnulls = false;
497-
498495
dtuple->bt_columns[i].bv_attno = i + 1;
499496
dtuple->bt_columns[i].bv_allnulls = true;
500497
dtuple->bt_columns[i].bv_hasnulls = false;

0 commit comments

Comments
 (0)