-
Notifications
You must be signed in to change notification settings - Fork 405
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patroni 2.1.4 #737
Patroni 2.1.4 #737
Conversation
- allow starting etcd on non-x86 platforms - refactor get_dcs_config()
with open(cgroup_v2_memory_limit_path) as f: | ||
try: | ||
os_memory_mb = int(f.read()) / 1048576 | ||
except Exception: # there could be "max" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the phrase
there could be "max"
mean here ?
To me the code reads like If there is any exception, pretend there is no limit on os_memory_mb by setting it to the max possible value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"max", literally, a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh now I understand.
can you change the comment to
string literal "max" is a possible value
?
👍 |
1 similar comment
👍 |
get_dcs_config()
functionClose #736, #726