Skip to content
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

Merged
merged 4 commits into from
Jun 17, 2022
Merged

Patroni 2.1.4 #737

merged 4 commits into from
Jun 17, 2022

Conversation

CyberDem0n
Copy link
Contributor

  • ensure all packages are upgraded to the latest version (apt-get -y upgrade)
  • allow starting etcd on non-x86 platforms
  • refactor get_dcs_config() function

Close #736, #726

Alexander Kukushkin added 2 commits June 7, 2022 10:43
- allow starting etcd on non-x86 platforms
- refactor get_dcs_config()
postgres-appliance/scripts/configure_spilo.py Show resolved Hide resolved
with open(cgroup_v2_memory_limit_path) as f:
try:
os_memory_mb = int(f.read()) / 1048576
except Exception: # there could be "max"
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"max", literally, a string.

Copy link
Member

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

?

Alexander Kukushkin added 2 commits June 16, 2022 14:48
@FxKu
Copy link
Member

FxKu commented Jun 17, 2022

👍

1 similar comment
@CyberDem0n
Copy link
Contributor Author

👍

@CyberDem0n CyberDem0n merged commit cdae614 into master Jun 17, 2022
@CyberDem0n CyberDem0n deleted the patroni/2.1.4 branch June 17, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Found a vulnerability on dpkg package
3 participants