Closed airween closed 6 days ago
Failed conditions
E Maintainability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE
No other notes, going to merge this.
what
This PR fixes the wrong behavior of
m_requestHostName
transaction variable.why
Previously, this variable was set when the
setRequestHostName()
was called, but previously it was initialized inprocessConnection()
. So the last function overwritten the variable, and the previously set value disappeared.If the connector calls if after
processConnection()
, then thehost
field in log entries which generated duringprocessConnection()
phase does not contain the necessary value.The solution was to add a condition which sets the
m_requestHostName
only if it's empty. Also the correct call to the functionsetRequestHostName()
can be seen in theregression.cc
.This modification does not modify the API.