Commit 712055f
committed
MEDIUM: proxy: implement backend deletion
This patch finalizes "del backend" handler by implementing the proper
proxy deletion.
After ensuring backend deletion can be performed, several steps are
executed. First, any watcher elements are updated to point on the next
proxy instance. The backend is then removed from ID and name global
trees and is finally detached from proxies_list.
Once the backend instance is removed from proxies_list, the backend
cannot be found by new elements. Thread isolation is lifted and
proxy_drop() is called, which will purge the proxy if its refcount is
null. Thanks to recently introduced PROXIES_DEL_LOCK, proxy_drop() is
thread safe.1 parent 6145f52 commit 712055f
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5098 | 5098 | | |
5099 | 5099 | | |
5100 | 5100 | | |
5101 | | - | |
| 5101 | + | |
| 5102 | + | |
5102 | 5103 | | |
5103 | 5104 | | |
5104 | 5105 | | |
| |||
5120 | 5121 | | |
5121 | 5122 | | |
5122 | 5123 | | |
| 5124 | + | |
| 5125 | + | |
| 5126 | + | |
| 5127 | + | |
| 5128 | + | |
| 5129 | + | |
| 5130 | + | |
| 5131 | + | |
| 5132 | + | |
| 5133 | + | |
| 5134 | + | |
| 5135 | + | |
| 5136 | + | |
| 5137 | + | |
| 5138 | + | |
| 5139 | + | |
| 5140 | + | |
| 5141 | + | |
| 5142 | + | |
5123 | 5143 | | |
5124 | 5144 | | |
5125 | 5145 | | |
5126 | 5146 | | |
5127 | 5147 | | |
| 5148 | + | |
| 5149 | + | |
5128 | 5150 | | |
5129 | 5151 | | |
5130 | 5152 | | |
| |||
0 commit comments