Re: should xlog_outdesc modify its argument?
От
Heikki Linnakangas
Тема
Re: should xlog_outdesc modify its argument?
Дата
Msg-id
332b40f5-686c-eb3a-8c72-f7438ee5036d@iki.fi
Ответ на
should xlog_outdesc modify its argument? (Mark Dilger)
Список
Дерево обсуждения
should xlog_outdesc modify its argument? Mark Dilger <hornschnorter@gmail.com>
Re: should xlog_outdesc modify its argument? Heikki Linnakangas <hlinnaka@iki.fi>
Re: should xlog_outdesc modify its argument? Mark Dilger <hornschnorter@gmail.com>
On 09/28/2016 02:35 AM, Mark Dilger wrote: > The function > > static void xlog_outdesc(StringInfo buf, XLogReaderState *record); > > in src/backend/access/transam/xlog.c is called by XLogInsertRecord, > and after returning a string describing an XLogRecord, it clears the > state data in its XLogReaderState argument. That mixes the read-only > semantics of "give me a string that describes this argument" and the > read-write semantics of "clear out the value in this argument". I don't see where the "clears the state data" is happening. Can you elaborate? - Heikki
В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата:
От: Ashutosh Bapat
Дата: