MCPcopy Create free account
hub / github.com/Tencent/phxsql / prepare

Method prepare

phx_percona/percona/sql/binlog.cc:6561–6568  ·  view source on GitHub ↗

Prepare the transaction in the transaction coordinator. This function will prepare the transaction in the storage engines (by calling @c ha_prepare_low) what will write a prepare record to the log buffers. @retval 0 success @retval 1 error */

Source from the content-addressed store, hash-verified

6559 @retval 1 error
6560*/
6561int MYSQL_BIN_LOG::prepare(THD *thd, bool all)
6562{
6563 DBUG_ENTER("MYSQL_BIN_LOG::prepare");
6564
6565 int error= ha_prepare_low(thd, all);
6566
6567 DBUG_RETURN(error);
6568}
6569
6570/**
6571 Commit the transaction in the transaction coordinator.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected