You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/hooks.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,15 +73,20 @@ The following variables are available on all hooks:
73
73
-`GH_OST_MIGRATED_HOST`
74
74
-`GH_OST_INSPECTED_HOST`
75
75
-`GH_OST_EXECUTING_HOST`
76
+
-`GH_OST_TARGET_HOST` - the target/applier hostname (in `--move-tables`, this is the target cluster host)
76
77
-`GH_OST_HOOKS_HINT` - copy of `--hooks-hint` value
77
78
-`GH_OST_HOOKS_HINT_OWNER` - copy of `--hooks-hint-owner` value
78
79
-`GH_OST_HOOKS_HINT_TOKEN` - copy of `--hooks-hint-token` value
79
80
-`GH_OST_DRY_RUN` - whether or not the `gh-ost` run is a dry run
80
81
-`GH_OST_REVERT` - whether or not `gh-ost` is running in revert mode
82
+
-`GH_OST_MOVE_TABLES` - whether or not `gh-ost` is running in `--move-tables` mode
83
+
-`GH_OST_TARGET_DATABASE_NAME` - operation target database name (in `--move-tables`, this is the explicit target database)
84
+
-`GH_OST_TARGET_TABLE_NAME` - operation target table name (mode-dependent)
81
85
82
-
The following variable are available on particular hooks:
86
+
The following variables are available on particular hooks:
83
87
84
88
-`GH_OST_INSTANT_DDL` is only available in `gh-ost-on-success`. The value is `true` if instant DDL was successful, and `false` if it was not.
89
+
-`GH_OST_DRAIN_GTID` is only available in `gh-ost-on-success` and only in `--move-tables` mode. It contains the GTID/binlog coordinates captured after draining target relay logs.
85
90
-`GH_OST_COMMAND` is only available in `gh-ost-on-interactive-command`
86
91
-`GH_OST_STATUS` is only available in `gh-ost-on-status`
87
92
-`GH_OST_LAST_BATCH_COPY_ERROR` is only available in `gh-ost-on-batch-copy-retry`
0 commit comments