Skip to content

Commit 90800a8

Browse files
committed
Adjust wal fast source logic to explicitly connsider data directory
Simplified logic of wal_fast can be found here [1] which is as follows: ``` WAL_FAST=./wal_fast ``` Hence, aligning with the same logic to keep things simple. This way, it will not conflict with separate WAL directory too. [1] https://github.com/anasanjaria/spilo/blob/master/postgres-appliance/scripts/basebackup.sh
1 parent 1b29c95 commit 90800a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: postgres-appliance/scripts/restore_command.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ readonly wal_destination=$2
2727

2828
wal_dir=$(dirname "$wal_destination")
2929
readonly wal_dir
30-
wal_fast_source=$(dirname "$(dirname "$(realpath "$wal_dir")")")/wal_fast/$wal_filename
30+
wal_fast_source=$(dirname "$PGDATA/wal_fast/$wal_filename")
3131
readonly wal_fast_source
3232

3333
[[ -f $wal_fast_source ]] && exec mv "${wal_fast_source}" "${wal_destination}"

0 commit comments

Comments
 (0)