Skip to content

Commit dd6d32a

Browse files
naming things
1 parent cdebc6c commit dd6d32a

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

localtests/move-tables/three/create.sql renamed to localtests/move-tables/multiple-three/create.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--
66
-- These three tables are the canonical superset used by the manual harness
77
-- (script/move-tables/setup, reset, insert-source-primary-loop). The `single`
8-
-- and `multi` localtest fixtures move subsets of them.
8+
-- and `multiple-two` localtest fixtures move subsets of them.
99

1010
drop table if exists gh_ost_test;
1111
create table gh_ost_test (
File renamed without changes.
File renamed without changes.
File renamed without changes.

script/move-tables/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Setup the multi-cluster topology and seed the data. This always seeds the same
44
canonical **three** tables on the source — `gh_ost_test`, `gh_ost_test_other`,
5-
and `gh_ost_test_third` (see `localtests/move-tables/three/create.sql`) — into
5+
and `gh_ost_test_third` (see `localtests/move-tables/multiple-three/create.sql`) — into
66
the `test` database. You then choose how many of them to move via `--move-tables`,
77
so `setup`/`reset`/`teardown` behave identically regardless of which scenario you
88
run.

script/move-tables/reset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SCRIPT_PATH="${GH_OST_ROOT}/script/move-tables"
88
DATABASE_NAME="${GH_OST_TEST_DB:-test}"
99

1010
# The canonical superset of tables seeded by setup (and listed in
11-
# localtests/move-tables/three/tables.txt). The manual harness always
11+
# localtests/move-tables/multiple-three/tables.txt). The manual harness always
1212
# sets up / cleans up all of them, regardless of how many you actually move,
1313
# so reset works the same no matter which scenario you just ran.
1414
TABLES=(gh_ost_test gh_ost_test_other gh_ost_test_third)
@@ -23,7 +23,7 @@ source_drop="${source_drop%, }"
2323
${SCRIPT_PATH}/mysql-source-primary -D "${DATABASE_NAME}" -e "DROP TABLE IF EXISTS ${source_drop};"
2424

2525
# Recreate and seed source table data, same fixture as setup uses.
26-
${SCRIPT_PATH}/mysql-source-primary -D "${DATABASE_NAME}" < "${GH_OST_ROOT}/localtests/move-tables/three/create.sql"
26+
${SCRIPT_PATH}/mysql-source-primary -D "${DATABASE_NAME}" < "${GH_OST_ROOT}/localtests/move-tables/multiple-three/create.sql"
2727

2828
# Drop the moved tables on the target cluster.
2929
target_drop=""

script/move-tables/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ setup() {
155155
echo "OK"
156156

157157
echo -n "Seeding data in source cluster..."
158-
exec-mysql-source-primary -D $DATABASE_NAME < "$GH_OST_ROOT/localtests/move-tables/three/create.sql"
158+
exec-mysql-source-primary -D $DATABASE_NAME < "$GH_OST_ROOT/localtests/move-tables/multiple-three/create.sql"
159159
echo "OK"
160160
}
161161

0 commit comments

Comments
 (0)