Commit 4e7eb06
committed
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.1 parent 778e879 commit 4e7eb06
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
199 | 196 | | |
200 | | - | |
| 197 | + | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
210 | 215 | | |
211 | 216 | | |
212 | 217 | | |
| |||
0 commit comments