391
392
if (session->transaction.xid_state.xid.is_null())
392
393
session->transaction.xid_state.xid.set(session->getQueryId());
394
397
/* Only true if user is executing a BEGIN WORK/START TRANSACTION */
395
398
if (! session->getResourceContext(monitored, 0)->isStarted())
396
399
registerResourceForStatement(session, monitored, engine, resource_manager);