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

[#247] PortManager__Generic uses lock-dirs for reserved ports#255

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

Open
dmitry-lipetsk wants to merge11 commits intopostgrespro:master
base:master
Choose a base branch
Loading
fromdmitry-lipetsk:master-fix247--v001
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
11 commits
Select commitHold shift + click to select a range
99e645e
[#247] PortManager__Generic uses lock-dirs for reserved ports
dmitry-lipetskMay 6, 2025
c6f4b4d
PortManager__Generic is refactored
dmitry-lipetskMay 7, 2025
f085b70
[#256] A used port range is [1024 ... 65535]
dmitry-lipetskMay 7, 2025
c9b4bbf
PortManager__Generic is refactored [consts, asserts]
dmitry-lipetskMay 7, 2025
862c79f
Merge branch 'master' into master-fix247--v001
dmitry-lipetskMay 7, 2025
b5e6f25
Merge branch 'master' into master-fix247--v001
dmitry-lipetskMay 7, 2025
be3cc11
Merge branch 'master' into master-fix247--v001
dmitry-lipetskMay 12, 2025
cc8333c
Merge branch 'master' into master-fix247--v001
dmitry-lipetskMay 12, 2025
d15ecdb
PortManager__Generic sends debug messages about its operations.
dmitry-lipetskMay 29, 2025
8e0869d
[attention] OsOperations::create_lock_fs_obj is added
dmitry-lipetskMay 31, 2025
82b46b3
Code style is fixed
dmitry-lipetskJun 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Code style is fixed
  • Loading branch information
@dmitry-lipetsk
dmitry-lipetsk committedJun 1, 2025
commit82b46b3594237c991cbb5dd9a8c061f46afd64cb
14 changes: 7 additions & 7 deletionstestgres/operations/local_ops.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,20 +30,20 @@


class LocalOsLockFsObj(OsLockObj):
m_path: str
_path: str

def __init__(self, path: str):
assert type(path) == str # noqa: str
self.m_path = path
self._path = path
os.mkdir(path) # throw
assert os.path.exists(path)
self.m_path = path
self._path = path

def release(self) -> None:
assert type(self.m_path) == str # noqa: str
assert os.path.exists(self.m_path)
os.rmdir(self.m_path)
self.m_path = None
assert type(self._path) == str # noqa: str
assert os.path.exists(self._path)
os.rmdir(self._path)
self._path = None


class LocalOperations(OsOperations):
Expand Down
20 changes: 10 additions & 10 deletionstestgres/operations/remote_ops.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,8 +44,8 @@ def cmdline(self):


class RemoteOsLockFsObj(OsLockObj):
m_os_ops: RemoteOperations
m_path: str
_os_ops: RemoteOperations
_path: str

def __init__(self, os_ops: RemoteOperations, path: str):
assert isinstance(os_ops, RemoteOperations)
Expand All@@ -54,18 +54,18 @@ def __init__(self, os_ops: RemoteOperations, path: str):
os_ops.makedir(path) # throw
assert os_ops.path_exists(path)

self.m_os_ops = os_ops
self.m_path = path
self._os_ops = os_ops
self._path = path

def release(self) -> None:
assert type(self.m_path) == str # noqa: str
assert isinstance(self.m_os_ops, RemoteOperations)
assert self.m_os_ops.path_exists(self.m_path)
assert type(self._path) == str # noqa: str
assert isinstance(self._os_ops, RemoteOperations)
assert self._os_ops.path_exists(self._path)

self.m_os_ops.rmdir(self.m_path) # throw
self._os_ops.rmdir(self._path) # throw

self.m_path = None
self.m_os_ops = None
self._path = None
self._os_ops = None


class RemoteOperations(OsOperations):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp