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:32:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-08-03 15:32:06 +0300
commit0e42397f42b370798461cbf3358185b520329f9f (patch)
tree177fc0f77ba659163ac64f2778d44296724db31a /src/bin/pg_rewind/t/002_databases.pl
parent69b7a35c9ad8d8a467b5be5ab6ab2db7935e9b28 (diff)
downloadpostgresql-0e42397f42b370798461cbf3358185b520329f9f.tar.gz
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 b0b007a763..f10899d440 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');