Possible uninitialized use of the variables (src/backend/access/transam/twophase.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Possible uninitialized use of the variables (src/backend/access/transam/twophase.c)
Дата
Msg-id CAEudQAooECJ+gU_RZB-yhioPOV94R4ucoHAf68PiJhLpgpVpBw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Possible uninitialized use of the variables (src/backend/access/transam/twophase.c)  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
Hi,

Commit https://github.com/postgres/postgres/commit/1eb6d6527aae264b3e0b9c95aa70bb7a594ad1cf, modified
data struct TwoPhaseFileHeader and added two new fields:

XLogRecPtr origin_lsn; /* lsn of this record at origin node */
TimestampTz origin_timestamp; /* time of prepare at origin node */

I think thay forgot initialize these fields in the function StartPrepare because,
when calling function save_state_data(&hdr, sizeof(TwoPhaseFileHeader));

I have one report about possible uninitialized usage of the variables.

Best regards,

Ranier Vilela


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: [PATCH] Improve function toast_delete_external (src/backend/access/table/toast_helper.c)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Database-level collation version tracking