Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbe3c02

Browse files
committed
Revise postmaster startup/shutdown logic to eliminate the problem that a
constant flow of new connection requests could prevent the postmaster fromcompleting a shutdown or crash restart. This is done by labeling childprocesses that are "dead ends", that is, we know that they were launched onlyto tell a client that it can't connect. These processes are managedseparately so that they don't confuse us into thinking that we can't advanceto the next stage of a shutdown or restart sequence, until the very endwhere we must wait for them to drain out so we can delete the shmem segment.Per discussion of a misbehavior reported by Keaton Adams.Since this code was baroque already, and my first attempt at fixing theproblem made it entirely impenetrable, I took the opportunity to rewrite itin a state-machine style. That eliminates some duplicated code sections andhopefully makes everything a bit clearer.
1 parentc556b29 commitbbe3c02

File tree

1 file changed

+462
-307
lines changed

1 file changed

+462
-307
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp