Commit 466f0da
avoid getting lb from db
Let's avoid modifying the schedule() function's prototype
as that might impact too many places.
To avoid unnecesary db call when the lb was already scheduled
before. This seems to be a safer way which modifies the least
code. Seems a little risky if we try to use the lb passed from
member.pool.loadbalancer because this content from the
third-party might differ.
(cherry picked from commit 4e7eb06)1 parent dbc28b1 commit 466f0da
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | | - | |
| 208 | + | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
219 | 226 | | |
220 | 227 | | |
221 | 228 | | |
| |||
0 commit comments