Skip to content

Commit

Permalink
fix: correct CHANGE REPLICATION FILTER' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Jan 2, 2025
1 parent 24726b2 commit b2bc1ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions devtools/replica-setup-mysql/start_replication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ fi
# Prepare replication filters
REPLICATION_FILTERS=""
if [ -n "$INCLUDE_SCHEMAS" ]; then
REPLICATION_FILTERS="$REPLICATION_FILTERS REPLICATE_DO_DB=(${INCLUDE_SCHEMAS})"
REPLICATION_FILTERS="REPLICATE_DO_DB=(${INCLUDE_SCHEMAS})"
fi
if [ -n "$EXCLUDE_SCHEMAS" ]; then
REPLICATION_FILTERS="$REPLICATION_FILTERS REPLICATE_IGNORE_DB=(${EXCLUDE_SCHEMAS})"
REPLICATION_FILTERS="${REPLICATION_FILTERS}${REPLICATION_FILTERS:+, }REPLICATE_IGNORE_DB=(${EXCLUDE_SCHEMAS})"
fi
if [ -n "$INCLUDE_TABLES" ]; then
REPLICATION_FILTERS="$REPLICATION_FILTERS REPLICATE_DO_TABLE=(${INCLUDE_TABLES})"
REPLICATION_FILTERS="${REPLICATION_FILTERS}${REPLICATION_FILTERS:+, }REPLICATE_DO_TABLE=(${INCLUDE_TABLES})"
fi
if [ -n "$EXCLUDE_TABLES" ]; then
REPLICATION_FILTERS="$REPLICATION_FILTERS REPLICATE_IGNORE_TABLE=(${EXCLUDE_TABLES})"
REPLICATION_FILTERS="${REPLICATION_FILTERS}${REPLICATION_FILTERS:+, }REPLICATE_IGNORE_TABLE=(${EXCLUDE_TABLES})"
fi

# Add filter command if any filters are set
Expand Down

0 comments on commit b2bc1ab

Please sign in to comment.