| 2240 | |
| 2241 | |
| 2242 | static void |
| 2243 | binlog_setup_engine_commit_data(handler_binlog_event_group_info *context, |
| 2244 | binlog_cache_mngr *cache_mngr) |
| 2245 | { |
| 2246 | if (unlikely(context->xa_xid)) |
| 2247 | { |
| 2248 | /* Mark that we are doing XA and need to unlog. */ |
| 2249 | cache_mngr->need_engine_2pc= true; |
| 2250 | context->internal_xa= false; |
| 2251 | } |
| 2252 | else if (unlikely(cache_mngr->need_engine_2pc)) |
| 2253 | { |
| 2254 | /* Internal 2-phase with multiple xa-capable engines. */ |
| 2255 | DBUG_ASSERT(cache_mngr->xa_xid != 0); |
| 2256 | cache_mngr->xid_buf.set(cache_mngr->xa_xid); |
| 2257 | context->xa_xid= &cache_mngr->xid_buf; |
| 2258 | context->internal_xa= true; |
| 2259 | } |
| 2260 | } |
| 2261 | |
| 2262 | |
| 2263 | extern "C" |
no test coverage detected