Re: copy-past-o comment in lock.h

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: copy-past-o comment in lock.h
Дата
Msg-id 20190507080024.GP1499@paquier.xyz
обсуждение исходный текст
Ответ на copy-past-o comment in lock.h  (John Naylor <john.naylor@2ndquadrant.com>)
Ответы Re: copy-past-o comment in lock.h  (John Naylor <john.naylor@2ndquadrant.com>)
Список pgsql-hackers
On Tue, May 07, 2019 at 03:41:50PM +0800, John Naylor wrote:
> Attached is an attempt to match surrounding code. More broadly,
> though, it seems the "ID info" comments belong with the SET_LOCKTAG_*
> macros rather than with the LockTagType enum members.

+   LOCKTAG_SPECULATIVE_TOKEN,  /* for speculative insertion */
+   /* ID info for a speculative token is TRANSACTION info + token */
Shouldn't the first comment be just "speculative insertion"?  And the
second one "ID info for a speculative insertion is transaction ID +
its speculative insert counter"?
--
Michael

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: New vacuum option to do only freezing
Следующее
От: John Naylor
Дата:
Сообщение: Re: copy-past-o comment in lock.h