| 1367 | } |
| 1368 | |
| 1369 | static int binlog_start_consistent_snapshot(handlerton *hton, THD *thd) |
| 1370 | { |
| 1371 | int err= 0; |
| 1372 | DBUG_ENTER("binlog_start_consistent_snapshot"); |
| 1373 | |
| 1374 | if ((err= thd->binlog_setup_trx_data())) |
| 1375 | DBUG_RETURN(err); |
| 1376 | |
| 1377 | binlog_cache_mngr * const cache_mngr= thd_get_cache_mngr(thd); |
| 1378 | |
| 1379 | /* Server layer calls us with LOCK_log locked, so this is safe. */ |
| 1380 | mysql_bin_log.raw_get_current_log(&cache_mngr->binlog_info); |
| 1381 | |
| 1382 | trans_register_ha(thd, TRUE, hton); |
| 1383 | |
| 1384 | DBUG_RETURN(err); |
| 1385 | } |
| 1386 | |
| 1387 | static int binlog_clone_consistent_snapshot(handlerton *hton, THD *thd, |
| 1388 | THD *from_thd) |
nothing calls this directly
no test coverage detected