diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-23 16:41:34 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-23 16:41:34 +0300 |
commit | 8c80a66e047ba149bff03f42a1adcb2c9315135d (patch) | |
tree | 1e058ed6ffdf07d7846d8f74c4e640da21fbbc4f /sql/handler.h | |
parent | 61c0df94655f2dc3146456e49f3f51610251e79f (diff) | |
download | mariadb-git-bb-10.3-marko.tar.gz |
MDEV-22351 RESET MASTER should be propagated to InnoDBbb-10.3-marko
Ever since commit 947efe17ed8188ca4feef6deb0c2831a246b5c8f
InnoDB no longer writes binlog position in one place.
It will not at all be written to the TRX_SYS page, and
instead it will be written to the undo log header page that
changes the transaction state.
ha_reset_master(), trx_rseg_reset_binlog_pos(): Reset the
binlog information in InnoDB when RESET MASTER is invoked.
reset_master(): Invoke ha_reset_master() to discard the
information in InnoDB.
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 94c652359d2..ea3bd93c039 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1476,6 +1476,7 @@ struct handlerton int (*set_checkpoint)(handlerton *hton, const XID* xid); int (*get_checkpoint)(handlerton *hton, XID* xid); void (*fake_trx_id)(handlerton *hton, THD *thd); + void (*reset_master)(); /* Optional clauses in the CREATE/ALTER TABLE */ @@ -4765,6 +4766,7 @@ void ha_close_connection(THD* thd); void ha_kill_query(THD* thd, enum thd_kill_levels level); bool ha_flush_logs(handlerton *db_type); void ha_drop_database(char* path); +void ha_reset_master(); void ha_checkpoint_state(bool disable); void ha_commit_checkpoint_request(void *cookie, void (*pre_hook)(void *)); int ha_create_table(THD *thd, const char *path, |