mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-24 11:11:14 +00:00
added basic gtid support to pt-slave-restart
This commit is contained in:
@@ -113,6 +113,14 @@ make_sandbox() {
|
||||
echo "query_cache_size=$QUERY_CACHE_SIZE" >> /tmp/$port/my.sandbox.cnf
|
||||
fi
|
||||
|
||||
if [ -n "$GTID" ]; then
|
||||
echo "gtid_mode=on" >> /tmp/$port/my.sandbox.cnf
|
||||
echo "enforce_gtid_consistency" >> /tmp/$port/my.sandbox.cnf
|
||||
fi
|
||||
if [ -n "$REPLICATION_THREADS" ]; then
|
||||
echo "slave-parallel-workers=$REPLICATION_THREADS" >> /tmp/$port/my.sandbox.cnf
|
||||
fi
|
||||
|
||||
if [ -n "$EXTRA_DEFAULTS_FILE" ]; then
|
||||
cat "$EXTRA_DEFAULTS_FILE" >> /tmp/$port/my.sandbox.cnf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user