pgsql: Improve style of pg_upgrade task callback functions.
В списке pgsql-committers по дате отправления:
| От | Nathan Bossart |
|---|---|
| Тема | pgsql: Improve style of pg_upgrade task callback functions. |
| Дата | |
| Msg-id | E1stter-0013OZ-Fa@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Improve style of pg_upgrade task callback functions. I wanted to avoid adjusting this code too much when converting these tasks to use the new parallelization framework (see commit 40e2e5e92b), which is why this is being done as a follow-up commit. These stylistic adjustments result in fewer lines of code and fewer levels of indentation in some places. While at it, add names to the UpgradeTaskSlotState enum and the UpgradeTaskSlot struct. I'm not aware of any established project policy in this area, but let's at least be consistent within the same file. Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/ZunW7XHLd2uTts4f%40nathan Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9726653185de62f2f8bf42a25e961bc56895a41b Modified Files -------------- src/bin/pg_upgrade/check.c | 212 ++++++++++++++++++------------------------- src/bin/pg_upgrade/task.c | 4 +- src/bin/pg_upgrade/version.c | 29 +++--- 3 files changed, 102 insertions(+), 143 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера