[4.1] support distributed txn free route

This commit is contained in:
chinaxing
2023-01-28 16:07:17 +08:00
committed by ob-robot
parent 1cdf1dff1c
commit 30d0adec61
89 changed files with 3978 additions and 518 deletions

View File

@ -544,6 +544,9 @@ int ObGvSqlAudit::fill_cells(obmysql::ObMySQLRequestRecord &record)
case SESSION_ID: {
cells[cell_idx].set_uint64(record.data_.session_id_);
} break;
case PROXY_SESSION_ID: {
cells[cell_idx].set_uint64(record.data_.proxy_session_id_);
} break;
case TRACE_ID: {
int len = record.data_.trace_id_.to_string(trace_id_, sizeof(trace_id_));
cells[cell_idx].set_varchar(trace_id_, len);
@ -967,6 +970,10 @@ int ObGvSqlAudit::fill_cells(obmysql::ObMySQLRequestRecord &record)
cells[cell_idx].set_collation_type(ObCharset::get_default_collation(
ObCharset::get_default_charset()));
} break;
case TX_FREE_ROUTE_FLAG: {
cells[cell_idx].set_uint64(record.data_.txn_free_route_flag_);
break;
}
default: {
ret = OB_ERR_UNEXPECTED;
SERVER_LOG(WARN, "invalid column id", K(ret), K(cell_idx), K(col_id));