[master] add sql_audit txn-route diagnose info

This commit is contained in:
chinaxing
2023-02-14 04:15:02 +00:00
committed by ob-robot
parent 6d1f508977
commit 092b683a60
16 changed files with 204 additions and 42 deletions

View File

@ -970,13 +970,17 @@ 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: {
case TX_INTERNAL_ROUTE_FLAG: {
cells[cell_idx].set_uint64(record.data_.txn_free_route_flag_);
break;
}
case PARTITION_HIT: {
cells[cell_idx].set_bool(record.data_.partition_hit_);
} break;
case TX_INTERNAL_ROUTE_VERSION: {
cells[cell_idx].set_uint64(record.data_.txn_free_route_version_);
break;
}
default: {
ret = OB_ERR_UNEXPECTED;
SERVER_LOG(WARN, "invalid column id", K(ret), K(cell_idx), K(col_id));