[MXS-165] Concurrency issue while incrementing sessions in qlafilter Created: 2015-05-20 Updated: 2015-06-11 Resolved: 2015-06-11 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | qlafilter |
| Affects Version/s: | 1.0.5, 1.1.0 |
| Fix Version/s: | 1.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sriram Patil | Assignee: | Sriram Patil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The sessions variable in QLA_INSTANCE struct keeps track of the session counts. With the help of this, the log files are named as "<filebase>.<sessions>". But, when sessions is incremented in newSession function it does not take care of concurrency. This can result in multiple sessions writing into a same log file. |
| Comments |
| Comment by Dipti Joshi (Inactive) [ 2015-06-09 ] |
|
srirampatil Do you have a fix for this that you can send pull request for ? |
| Comment by Sriram Patil [ 2015-06-09 ] |
|
dshjoshi Yes, you can check the link below |
| Comment by Dipti Joshi (Inactive) [ 2015-06-11 ] |
|
markus makela Can you check if we can accept this pull request ? |
| Comment by markus makela [ 2015-06-11 ] |
|
Merged into develop |