Menu

#2726 smf: Smfnd does not protect global variables used in more than one thread

5.21.06
fixed
None
defect
smf
nd
major
False
2021-06-01
2017-12-04
elunlen
No

Several global variables (cb structure) are handled both in the main thread and in the mds thread but no mutex is used for protection. Make handling of global variables thread safe

Related

Wiki: ChangeLog-5.21.06

Discussion

  • elunlen

    elunlen - 2017-12-11
    • status: accepted --> assigned
     
  • Anders Widell

    Anders Widell - 2018-02-02
    • Milestone: 5.18.01 --> 5.18.04
     
  • elunlen

    elunlen - 2018-06-08
    • status: assigned --> unassigned
     
  • Krishna Pawar

    Krishna Pawar - 2018-09-06
    • Part: - --> nd
     
  • Krishna Pawar

    Krishna Pawar - 2018-09-06

    Hi elunlen,
    I have only seen cb->agent_cnt and cb->smfd_dest which are not protected. Do you see more variables in smfnd_mds.c which needs lock protection?
    Thanks
    Krishna

     
  • Krishna Pawar

    Krishna Pawar - 2018-09-14

    Any response?

     
  • Gary Lee

    Gary Lee - 2018-09-29
    • Milestone: 5.18.04 --> 5.18.12
     
  • Gary Lee

    Gary Lee - 2019-01-09
    • Milestone: 5.19.01 --> future
     
  • Thanh Nguyen

    Thanh Nguyen - 2021-03-28
    • status: unassigned --> assigned
     
  • Thanh Nguyen

    Thanh Nguyen - 2021-04-07
    • status: assigned --> review
     
  • Thanh Nguyen

    Thanh Nguyen - 2021-04-07
    • assigned_to: elunlen --> Thanh Nguyen
     
  • Thanh Nguyen

    Thanh Nguyen - 2021-04-26
    • status: review --> fixed
     
  • Thanh Nguyen

    Thanh Nguyen - 2021-04-26

    Fixed with
    5eb4b76fbaa13b2773f9a8e0a059a1e4d61febc2

     
  • Gary Lee

    Gary Lee - 2021-06-01
    • Milestone: future --> 5.21.06
     

Log in to post a comment.

MongoDB Logo MongoDB