The cache_data to use when binlogging into the --binlog-storage-engine. With binlog in storage engine, we're optimizing for transactional event groups, and for simplicity we only pass a single cache into the engine binlog implementation. When mixing transactional and non-transactional updates in a single event group, we flush everything as out-of-band-data, and use the transa
| 605 | the engine. |
| 606 | */ |
| 607 | binlog_cache_data *engine_cache_data() |
| 608 | { |
| 609 | return ( unlikely(!using_trx_cache) || ( unlikely(using_stmt_cache) && |
| 610 | !stmt_cache.empty() && |
| 611 | trx_cache.empty() ) ) ? |
| 612 | &stmt_cache : &trx_cache; |
| 613 | } |
| 614 | |
| 615 | IO_CACHE* get_binlog_cache_log(bool is_transactional) |
| 616 | { |
no test coverage detected