added and improved sample hooks

This commit is contained in:
Shlomi Noach 2016-08-25 13:55:34 +02:00
parent ecd33969bf
commit b60875f32f
13 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-before-cut-over
echo "$(date) gh-ost-on-before-cut-over $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-before-row-copy
echo "$(date) gh-ost-on-before-row-copy $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-begin-postponed
echo "$(date) gh-ost-on-begin-postponed $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-failure
echo "$(date) gh-ost-on-failure $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME; ghost: $GH_OST_OLD_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-interactive-command
echo "$(date) gh-ost-on-interactive-command $GH_OST_COMMAND" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-row-copy-complete
echo "$(date) gh-ost-on-row-copy-complete $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-rowcount-complete
echo "$(date) gh-ost-on-rowcount-complete $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-startup
echo "$(date) gh-ost-on-startup $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-status
echo "$(date) gh-ost-on-status; elapsed: ${GH_OST_ELAPSED_SECONDS}; msg: ${GH_OST_STATUS}" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-stop-replication
echo "$(date) gh-ost-on-stop-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-success
echo "$(date) gh-ost-on-success $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-success
echo "$(date) gh-ost-on-success $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log

View File

@ -0,0 +1,5 @@
#!/bin/bash
# Sample hook file for gh-ost-on-validated
echo "$(date) gh-ost-on-validated $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log