Re: pgsql: Removed unused variable, openLogOff.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Removed unused variable, openLogOff.
Дата
Msg-id 20190307141116.GC26628@paquier.xyz
обсуждение исходный текст
Ответ на Re: pgsql: Removed unused variable, openLogOff.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgsql: Removed unused variable, openLogOff.
Список pgsql-hackers
On Thu, Mar 07, 2019 at 08:03:19AM -0500, Robert Haas wrote:
> Oh, sorry, I didn't see the earlier thread.  You're right that this is
> messed up: if we're going to report startOffset rather than
> openLogOff, we need to report nleft rather than bytes.  I would prefer
> to change nbytes -> nleft rather than anything else, though, because
> it seems to me that we should report the offset and length that
> actually failed, not the start of the whole chunk which partially
> succeeded.

I found the original coding cleaner logically (perhaps a matter of
personal taste and I am quite used to it so I am under influence!) by
reporting at which position it has failed when writing a given chunk.
Now it is the second time that somebody is sending a patch for that in
a couple of weeks, so visibly people obviously would like to simplify
this code :)

If you want to keep this formulation, that's fine for me.  However you
should really change it to nleft as you suggest, and not keep nbytes.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: few more wait events to add to docs
Следующее
От: Sandro Mani
Дата:
Сообщение: [Patch] Mingw: Fix import library extension, build actual staticlibraries