pgsql: Remove pg_dump/parallel.c's useless "aborting" flag.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove pg_dump/parallel.c's useless "aborting" flag.
Дата
Msg-id E1b744f-0005uO-25@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove pg_dump/parallel.c's useless "aborting" flag.

This was effectively dead code, since the places that tested it could not
be reached after we entered the on-exit-cleanup routine that would set it.
It seems to have been a leftover from a design in which error abort would
try to send fresh commands to the workers --- a design which could never
have worked reliably, of course.  Since the flag is not cross-platform, it
complicates reasoning about the code's behavior, which we could do without.

Although this is effectively just cosmetic, back-patch anyway, because
there are some actual bugs in the vicinity of this behavior.

Discussion: <15583.1464462418@sss.pgh.pa.us>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/210981a4a9fdd19cb299f248a7ecc25db9bf7d9d

Modified Files
--------------
src/bin/pg_dump/parallel.c | 34 ++++++----------------------------
1 file changed, 6 insertions(+), 28 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove pg_dump/parallel.c's useless "aborting" flag.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove pg_dump/parallel.c's useless "aborting" flag.