Slide 55
Slide 55 text
じゃあどこでこのバリエーションが生まれるのか?
エラーマクロが分かってればgrepは簡単
$ grep -r -A1 ER_SLAVE_FATAL_ERROR .
...
./sql/log_event.cc: rli->report(ERROR_LEVEL, ER_SLAVE_FATAL_ERROR,
./sql/log_event.cc: ER_THD(thd, ER_SLAVE_FATAL_ERROR),
./sql/log_event.cc- "Invalid character set for User var event");
--
./sql/rpl_slave.cc: mi->report(ERROR_LEVEL, ER_SLAVE_FATAL_ERROR,
./sql/rpl_slave.cc: ER(ER_SLAVE_FATAL_ERROR),
./sql/rpl_slave.cc- "Failed to flush master info.");
--
./sql/log_event.cc: rli->report(ERROR_LEVEL, ER_SLAVE_FATAL_ERROR,
./sql/log_event.cc: ER_THD(thd, ER_SLAVE_FATAL_ERROR),
./sql/log_event.cc- "Binlog version not supported");
...
54/83