From 4af752d6686e885c52bbeb947021e683308a3a7d Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 19 May 2015 14:45:35 +0200 Subject: [PATCH] revert the S3/pg_basebackup choice to unconditionally prefer S3 for testing purposes. --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index eacd17e3..216c61dd 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -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]