summaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/t/002_databases.pl
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-08-03 15:23:56 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-08-03 15:25:12 +0300
commit615b69595525385bbf050a170912b7671cacc5c8 (patch)
tree6f2d8bf875adb038fccbef443c16e30e07f7899d /src/bin/pg_rewind/t/002_databases.pl
parent2b917a58aec17ca5cf64196ee1d5d77ef8635caf (diff)
Fix pg_rewind when pg_xlog is a symlink.
pg_xlog is often a symlink, typically to a different filesystem. Don't get confused and comlain about by that, and just always pretend that it's a normal directory, even if it's really a symlink. Also add a test case for this. Backpatch to 9.5.
Diffstat (limited to 'src/bin/pg_rewind/t/002_databases.pl')
-rw-r--r--src/bin/pg_rewind/t/002_databases.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/t/002_databases.pl b/src/bin/pg_rewind/t/002_databases.pl
index b0b007a763a..f10899d4401 100644
--- a/src/bin/pg_rewind/t/002_databases.pl
+++ b/src/bin/pg_rewind/t/002_databases.pl
@@ -10,6 +10,7 @@ sub run_test
my $test_mode = shift;
RewindTest::setup_cluster();
+ RewindTest::start_master();
# Create a database in master.
master_psql('CREATE DATABASE inmaster');