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

Commitc0dca6b

Browse files
author
dura0ok
authored
Add PG_PROBACKUP_WAL_TREE_ENABLED env param (#143)
1 parent569923a commitc0dca6b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __init__(self, test_class: unittest.TestCase,
5454
self.probackup_path=probackup_pathorinit_params.probackup_path
5555
self.probackup_old_path=init_params.probackup_old_path
5656
self.remote=init_params.remote
57+
self.wal_tree_enabled=init_params.wal_tree_enabled
5758
self.verbose=init_params.verbose
5859
self.archive_compress=init_params.archive_compress
5960
self.test_class.output=None
@@ -185,6 +186,9 @@ def add_instance(self, instance, node, old_binary=False, options=None, expect_er
185186
'--remote-proto=ssh',
186187
'--remote-host=localhost']
187188

189+
ifself.wal_tree_enabled:
190+
options=options+ ['--wal-tree']
191+
188192
returnself.run(cmd+options,old_binary=old_binary,expect_error=expect_error)
189193

190194
defset_config(self,instance,old_binary=False,options=None,expect_error=False):

‎testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def __init__(self):
170170

171171
self.remote=test_env.get('PGPROBACKUP_SSH_REMOTE',None)=='ON'
172172
self.ptrack=test_env.get('PG_PROBACKUP_PTRACK',None)=='ON'andself.pg_config_version>=110000
173+
self.wal_tree_enabled=test_env.get('PG_PROBACKUP_WAL_TREE_ENABLED',None)=='ON'
173174

174175
self.paranoia=test_env.get('PG_PROBACKUP_PARANOIA',None)=='ON'
175176
env_compress=test_env.get('ARCHIVE_COMPRESSION',None)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp