Commit d0fcfb9
ZOOKEEPER-4810: Fix buf data race at format_endpoint_info
ZOOKEEPER-4810: Fix buf data race at format_endpoint_info()
format_endpoint_info() is widely called in the IO thread. And the
some ZOOAPIs will call this method too: zoo_cycle_next_server()
and zoo_get_current_server(). These APIs return the same static buffer
read/write by IO thread causes data race.
Reviewers: kezhuw
Author: fanyang89
Closes #2140 from fanyang89/fix-c-client-format-endpoint-race1 parent 4495456 commit d0fcfb9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5121 | 5121 | | |
5122 | 5122 | | |
5123 | 5123 | | |
5124 | | - | |
| 5124 | + | |
5125 | 5125 | | |
5126 | 5126 | | |
5127 | 5127 | | |
5128 | | - | |
| 5128 | + | |
5129 | 5129 | | |
5130 | 5130 | | |
5131 | 5131 | | |
| |||
0 commit comments