Skip to content

Commit 7f72872

Browse files
author
Shlomi Noach
committed
documenting gh-ost-on-start-replication hook
1 parent 6fa32f6 commit 7f72872

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

doc/hooks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ The full list of supported hooks is best found in code: [hooks.go](https://githu
4444
- `gh-ost-on-interactive-command`
4545
- `gh-ost-on-row-copy-complete`
4646
- `gh-ost-on-stop-replication`
47+
- `gh-ost-on-start-replication`
4748
- `gh-ost-on-begin-postponed`
4849
- `gh-ost-on-before-cut-over`
4950
- `gh-ost-on-success`
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Sample hook file for gh-ost-on-start-replication
4+
# Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163
5+
6+
echo "$(date) gh-ost-on-start-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

33
# Sample hook file for gh-ost-on-stop-replication
4+
# Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163
45

56
echo "$(date) gh-ost-on-stop-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log

0 commit comments

Comments
 (0)