From 4dfafc3cb0c3b8e9f53fc3741eeccc344a9b457b Mon Sep 17 00:00:00 2001 From: suetin Date: Sun, 17 Mar 2024 19:47:57 +0300 Subject: [PATCH] fix a_sync->async, add async in tests yaml --- internal/config/config.go | 4 ++-- tests/images/mysql/mysync.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 86081d29..aef8f6f8 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -88,8 +88,8 @@ type Config struct { ReplicationChannel string `config:"replication_channel" yaml:"replication_channel"` ExternalReplicationChannel string `config:"external_replication_channel" yaml:"external_replication_channel"` ExternalReplicationType util.ExternalReplicationType `config:"external_replication_type" yaml:"external_replication_type"` - ASync bool `config:"a_sync" yaml:"a_sync"` - ASyncAllowedLag int64 `config:"a_sync_allowed_lag" yaml:"a_sync_allowed_lag"` + ASync bool `config:"async" yaml:"async"` + ASyncAllowedLag int64 `config:"async_allowed_lag" yaml:"async_allowed_lag"` } // DefaultConfig returns default configuration for MySync diff --git a/tests/images/mysql/mysync.yaml b/tests/images/mysql/mysync.yaml index 6fac222d..3d4adc79 100644 --- a/tests/images/mysql/mysync.yaml +++ b/tests/images/mysql/mysync.yaml @@ -10,6 +10,8 @@ failover_cooldown: ${MYSYNC_FAILOVER_COOLDOWN:-60m} failover_delay: ${MYSYNC_FAILOVER_DELAY:-0s} inactivation_delay: ${MYSYNC_INACTIVATION_DELAY:-5s} semi_sync: ${MYSYNC_SEMISYNC:-true} +async: ${MYSYNC_ASYNC:-false} +async_allowed_lag: $(ASYNC_ALLOWED_LAG:-0s} resetupfile: /tmp/mysync.resetup resetup_crashed_hosts: ${MYSYNC_RESETUP_CRASHED_HOSTS:-false} zookeeper: