mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge remote-tracking branch 'github/bb-11.4-release' into bb-11.8-serg
This commit is contained in:
@@ -1947,4 +1947,17 @@ create_data
|
||||
|
||||
SST_PID="$DATA/wsrep_sst.pid"
|
||||
|
||||
if [ -n "${MTR_SST_JOINER_DELAY:-}" ]; then
|
||||
MTR_SST_JOINER_DELAY=$(trim_string "$MTR_SST_JOINER_DELAY")
|
||||
fi
|
||||
|
||||
simulate_long_sst()
|
||||
{
|
||||
# Delay for MTR tests if needed to simulate long SST/IST:
|
||||
if [ ${MTR_SST_JOINER_DELAY:-0} -gt 0 ]; then
|
||||
wsrep_log_info "Sleeping $MTR_SST_JOINER_DELAY seconds for MTR test"
|
||||
sleep $MTR_SST_JOINER_DELAY
|
||||
fi
|
||||
}
|
||||
|
||||
wsrep_log_info "$WSREP_METHOD $WSREP_TRANSFER_TYPE started on $WSREP_SST_OPT_ROLE"
|
||||
|
@@ -1574,6 +1574,8 @@ else # joiner
|
||||
exit 2
|
||||
fi
|
||||
|
||||
simulate_long_sst
|
||||
|
||||
# use donor magic file, if present
|
||||
# if IST was used, donor magic file was not created
|
||||
# Remove special tags from the magic file, and from the output:
|
||||
|
@@ -201,6 +201,10 @@ else
|
||||
echo "$SET_START_POSITION" | $MYSQL || exit $?
|
||||
fi
|
||||
|
||||
if [ "$WSREP_SST_OPT_ROLE" = 'joiner' ]; then
|
||||
simulate_long_sst
|
||||
fi
|
||||
|
||||
echo "done $STATE"
|
||||
|
||||
wsrep_log_info "$WSREP_METHOD $WSREP_TRANSFER_TYPE completed on $WSREP_SST_OPT_ROLE"
|
||||
|
@@ -915,6 +915,8 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
simulate_long_sst
|
||||
|
||||
# Remove special tags from the magic file, and from the output:
|
||||
coords=$(head -n1 "$MAGIC_FILE")
|
||||
wsrep_log_info "Galera co-ords from recovery: $coords"
|
||||
|
Reference in New Issue
Block a user