mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-07 11:09:24 +02:00
Remove duplicate code in brin_memtuple_initialize
Commit 8bf74967da
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
This commit is contained in:
parent
171c457cd0
commit
0d0626e27d
@ -482,9 +482,6 @@ brin_memtuple_initialize(BrinMemTuple *dtuple, BrinDesc *brdesc)
|
||||
sizeof(BrinValues) * brdesc->bd_tupdesc->natts);
|
||||
for (i = 0; i < brdesc->bd_tupdesc->natts; i++)
|
||||
{
|
||||
dtuple->bt_columns[i].bv_allnulls = true;
|
||||
dtuple->bt_columns[i].bv_hasnulls = false;
|
||||
|
||||
dtuple->bt_columns[i].bv_attno = i + 1;
|
||||
dtuple->bt_columns[i].bv_allnulls = true;
|
||||
dtuple->bt_columns[i].bv_hasnulls = false;
|
||||
|
Loading…
Reference in New Issue
Block a user