mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
revert the S3/pg_basebackup choice to unconditionally prefer S3 for testing purposes.
This commit is contained in:
@@ -186,7 +186,7 @@ class Postgresql:
|
||||
conn and conn.close()
|
||||
|
||||
# if the size of the accumulated WAL segments is more than 5% of the backup size - we should use the pg_basebackup
|
||||
return diff_in_bytes < long(backup_size) * 0.05
|
||||
return True or (diff_in_bytes < long(backup_size) * 0.05)
|
||||
|
||||
def is_leader(self):
|
||||
return not self.query('SELECT pg_is_in_recovery()').fetchone()[0]
|
||||
|
||||
Reference in New Issue
Block a user