Should we binlog a CREATE TEMPORARY statement. This should happen only if all of the following is true - binlog format is either BINLOG_FORMAT_STMT or BINLOG_FORMAT_MIXED and the corresponding bit is set in binlog_format_for_create_temporary. - The server is not in readonly mode or this is a slave thread. - Slave threads are not affected by readonly in this case. Note
| 3767 | @result 0 CREATE should not be logged |
| 3768 | */ |
| 3769 | bool binlog_create_tmp_table() |
| 3770 | { |
| 3771 | return (((1ULL << variables.binlog_format) & |
| 3772 | variables.create_temporary_table_binlog_formats) && |
| 3773 | (!opt_readonly || slave_thread)); |
| 3774 | } |
| 3775 | /** |
| 3776 | Determine if binlogging is disabled for this session |
| 3777 | @retval 0 if the current statement binlogging is disabled |
no outgoing calls
no test coverage detected