Commit c5d62ef
authored
Make NettyTransportClient.getCurrentId() thread safe (alibaba#1707)
Fix issue alibaba#1705.
- Use CAS to make it thread safe and limited in the declared range.
Signed-off-by: cj <power4j@outlook.com>1 parent 53237e8 commit c5d62ef
1 file changed
Lines changed: 7 additions & 4 deletions
File tree
- sentinel-cluster/sentinel-cluster-client-default/src/main/java/com/alibaba/csp/sentinel/cluster/client
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| 271 | + | |
269 | 272 | | |
270 | 273 | | |
0 commit comments