| От | Tom Lane |
|---|---|
| Тема | Re: BUG #14208: Inconsistent code modification - 3 |
| Дата | |
| Msg-id | 31897.1466610316@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #14208: Inconsistent code modification - 3 (petrum@gmail.com) |
| Ответы |
Re: BUG #14208: Inconsistent code modification - 3
|
| Список | pgsql-bugs |
petrum@gmail.com writes:
> File: postgresql-9.4.4/src/backend/replication/logical/reorderbuffer.c
> Function: ReorderBufferInterTXNInit
> Line: 870
> The line is
> if (txn->nentries != txn->nentries_mem)
> But shouldn't be there cur_txn instead of txn?
Actually, the function is ReorderBufferIterTXNInit, and in HEAD this
is line 963, but yeah that looks pretty broken. Andres, do you concur?
Or maybe the logic needs to be different for subtransactions?
> I do not know exactly the semantics of the code because I detected the
> problem with a CodeSonar prototype plugin.
Seems like a cool tool.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера