Commit b664f08
[syncd] Move logSet logGet under mutex to prevent race condition (#1505)
* [syncd] Move logSet logGet under mutex to prevent race condition
Fixes: sonic-net/sonic-buildimage#21180
Mutex is added to protect m_logLevelMap when doing logSet from multiple thread
Co-authored-by: Jianquan Ye <[email protected]>1 parent e11a959 commit b664f08
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
| 1952 | + | |
1952 | 1953 | | |
1953 | 1954 | | |
1954 | 1955 | | |
| |||
1967 | 1968 | | |
1968 | 1969 | | |
1969 | 1970 | | |
| 1971 | + | |
1970 | 1972 | | |
1971 | 1973 | | |
1972 | 1974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1547 | 1558 | | |
1548 | 1559 | | |
1549 | 1560 | | |
| |||
0 commit comments