Commit 1c32d98
committed
Update TokenAwarePolicy.make_query_plan to schedule to replicas first
End result should be like this:
1. Replicas from the same RACK (if rack is specified)
2. Replicas from the same DC, but Remote RACK (if rack is specified)
3. Replicas from the same DC (if rack is not specified)
3. Replicas from the remote DC
5. Non-replicas in the same order1 parent f52edbc commit 1c32d98
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
536 | 537 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
541 | 548 | | |
542 | 549 | | |
543 | 550 | | |
| |||
0 commit comments