Skip to content

Commit c0dca6b

Browse files
author
dura0ok
authored
Add PG_PROBACKUP_WAL_TREE_ENABLED env param (#143)
1 parent 569923a commit c0dca6b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __init__(self, test_class: unittest.TestCase,
5454
self.probackup_path = probackup_path or init_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+
if self.wal_tree_enabled:
190+
options = options + ['--wal-tree']
191+
188192
return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)
189193

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

testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

+1
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' and self.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)