diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2021-03-30 16:17:10 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2021-03-31 10:26:00 +0300 |
commit | bf310b4cfb5c275f8c555d469ef310bdd1219920 (patch) | |
tree | 7ef537077991c2739e1c8d88e5bb1f48560ef04e /sql/sql_repl.cc | |
parent | 5b678d9ea4aa3b5ed4c030a9bb5e7d15c3ff8804 (diff) | |
download | mariadb-git-bf310b4cfb5c275f8c555d469ef310bdd1219920.tar.gz |
MDEV-25305: MyRocks: Killing server during RESET MASTER can lose last transactionsbb-10.5-mdev25305
rocksdb_checkpoint_request() should call FlushWAL(sync=true) (which does
write-out and sync), not just SyncWAL() (which just syncs without writing
out)
Followup: the test requires debug sync facility
(This is a backport to 10.5)
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 084259d863d..ce270351dc3 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -3966,6 +3966,8 @@ int reset_master(THD* thd, rpl_gtid *init_state, uint32 init_state_len, ret= mysql_bin_log.reset_logs(thd, 1, init_state, init_state_len, next_log_number); repl_semisync_master.after_reset_master(); + DBUG_EXECUTE_IF("crash_after_reset_master", DBUG_SUICIDE();); + return ret; } |