added new hook before_die (#509)

* added new hook before_die

before die, the script calls this hook in oder to execute extra user's 
operations

* PR-509 -  added new hook before_die

- Added test cases

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
This commit is contained in:
Ilaria Migliozzi
2023-11-06 16:22:14 +01:00
committed by GitHub
parent a15207e6cd
commit 8e4824813f
6 changed files with 222 additions and 2 deletions

View File

@@ -96,6 +96,11 @@ sub before_drop_triggers {
print "PLUGIN before_drop_triggers\n";
}
sub before_die {
my ($self, %args) = @_;
print "PLUGIN before_die\n";
}
sub before_exit {
my ($self, %args) = @_;
print "PLUGIN before_exit\n";