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

Add promote() method#47

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

Merged
funbringer merged 7 commits intopostgrespro:masterfromzilder:promote
Jun 4, 2018
Merged

Conversation

zilder
Copy link
Collaborator

Add missing promote() method which corresponds to pg_ctl'spromote mode.

@codecov-io
Copy link

codecov-io commentedJun 4, 2018
edited
Loading

Codecov Report

Merging#47 intomaster willincrease coverage by0.03%.
The diff coverage is100%.

Impacted file tree graph

@@            Coverage Diff             @@##           master      #47      +/-   ##==========================================+ Coverage   97.12%   97.15%   +0.03%==========================================  Files          17       17                Lines        1529     1547      +18     ==========================================+ Hits         1485     1503      +18  Misses         44       44
Impacted FilesCoverage Δ
tests/test_simple.py99.81% <100%> (ø)⬆️
testgres/node.py97% <100%> (+0.06%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update72d0373...f5fe963. Read thecomment docs.

# for versions below 10 `promote` is asynchronous so we need to wait
# until it actually becomes writable
if self._pg_version < '10':
check_query = "SHOW transaction_read_only"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not safe since transactions might beread-only by default.

@@ -683,14 +683,50 @@ def reload(self, params=[]):
_params = [
get_bin_path("pg_ctl"),
"-D", self.data_dir,
"-w", # wait
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch!

@funbringerfunbringer merged commit24a8f1a intopostgrespro:masterJun 4, 2018
@funbringer
Copy link
Collaborator

LGTM, merging

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@funbringerfunbringerfunbringer requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@zilder@codecov-io@funbringer

[8]ページ先頭

©2009-2025 Movatter.jp