[MXS-1847] Race condition in server_get_parameter Created: 2018-05-02 Updated: 2018-05-04 Resolved: 2018-05-03 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 2.2.5 |
| Fix Version/s: | 2.2.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The return value of server_get_parameter function is retrieved without locking the server. In addition to this, the pointed to value is used instead of it being copied locally. The updating of server parameters in config_runtime.cc can cause a parameter to be temporarily lost while it is being updated. In other words, the update is not fully atomic. |