#------------------------------------------------------------------------------
# Redo log optimization
# Test aims to verify recovery works when server is stopped in debug point
# 1) log_writer_write_begin
# 2) log_writer_before_buf_limit_update
# 3) log_writer_after_checkpoint_check
# 4) log_writer_after_archiver_check
# 5) log_writer_before_lsn_update
#------------------------------------------------------------------------------

# Test uses debug binary
--source include/have_debug.inc
--source include/have_debug_sync.inc
--source include/not_valgrind.inc
# Avoid CrashReporter popup on Mac
--source include/not_crashrep.inc

--echo # Test with log_writer_write_begin
--source include/expect_crash.inc
# No.  of parallel client running load
let client_cnt=5;
let debug_point=log_writer_write_begin;
--source suite/innodb/include/innodb_redo_debug.inc

--echo # Test with log_writer_before_buf_limit_update
--source include/expect_crash.inc
# No.  of parallel client running load
let client_cnt=5;
let debug_point=log_writer_before_buf_limit_update;
--source suite/innodb/include/innodb_redo_debug.inc

--echo # Test with log_writer_after_checkpoint_check
--source include/expect_crash.inc
# No.  of parallel client running load
let client_cnt=5;
let debug_point=log_writer_after_checkpoint_check ;
--source suite/innodb/include/innodb_redo_debug.inc

--echo # Test with log_writer_after_archiver_check
--source include/expect_crash.inc
# No.  of parallel client running load
let client_cnt=5;
let debug_point=log_writer_after_archiver_check ;
--source suite/innodb/include/innodb_redo_debug.inc

--echo # Test with log_writer_before_lsn_update
--source include/expect_crash.inc
# No.  of parallel client running load
let client_cnt=5;
let debug_point=log_writer_before_lsn_update;
--source suite/innodb/include/innodb_redo_debug.inc
