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

[Refactoring] Default port manager functions now use PortManager__Generic and LocalOperations#251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

dmitry-lipetsk
Copy link
Collaborator

@dmitry-lipetskdmitry-lipetsk commentedMay 4, 2025
edited
Loading

This patch deletes a duplication of port manager code.

Nowutils.reserve_port andutils.release_port works through_old_port_manager - it is a global instance ofPortManager__Generic that uses a global instance ofLocalOperations.

It means thatPortManager__ThisHost works through instance ofPortManager__Generic.

Additional changes

  • MT-problem with creation ofPortManager__ThisHost singleton is fixed. After MT-lock we must to checksm_single_instance again.

This commit is a part of work for#247.

…eric and LocalOperationsThis patch deletes a duplication of port manager code.Now utils.reserve_port and utils.release_port works through _old_port_manager - it is a global instance of PortManager__Generic that uses a global instance of LocalOperations.This commit is a part of work forpostgrespro#247.
@dmitry-lipetsk
Copy link
CollaboratorAuthor

PR was tested with probackup2

After MT-lock we must to check __class__.sm_single_instance again.Refactoring - PortManager__ThisHost::__new__ is replaced with an explicit PortManager__ThisHost::get_single_instance() - PortManager__ThisHost::__init__ is deleted
@dmitry-lipetskdmitry-lipetsk merged commita683c65 intopostgrespro:masterMay 5, 2025
1 check failed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@dmitry-lipetsk

[8]ページ先頭

©2009-2025 Movatter.jp