[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

https://github.com/mariadb-corporation/MaxScale/pull/83

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

Generated at Thu Feb 08 03:57:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.