Commit 169411e
committed
server: use id column as secondary sort criteria with sortKey
For tables that use sort_key field, incorrect results can be returned by the list* APIs while using pagination and with the same values for sort-key field. (Default value for sort_key field remains 0).
This change adds id column as secondary sort criteria in such cases.
Fixes #5316
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>1 parent 72182b6 commit 169411e
File tree
4 files changed
+14
-12
lines changed- server/src/main/java/com/cloud
- api/query
- dao
- configuration
- network/vpc
4 files changed
+14
-12
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2801 | 2801 | | |
2802 | 2802 | | |
2803 | 2803 | | |
| 2804 | + | |
2804 | 2805 | | |
2805 | 2806 | | |
2806 | 2807 | | |
| |||
2960 | 2961 | | |
2961 | 2962 | | |
2962 | 2963 | | |
| 2964 | + | |
2963 | 2965 | | |
2964 | 2966 | | |
2965 | 2967 | | |
| |||
3182 | 3184 | | |
3183 | 3185 | | |
3184 | 3186 | | |
| 3187 | + | |
3185 | 3188 | | |
3186 | 3189 | | |
3187 | 3190 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 478 | + | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
5548 | 5549 | | |
5549 | 5550 | | |
5550 | 5551 | | |
5551 | | - | |
5552 | | - | |
5553 | | - | |
| 5552 | + | |
| 5553 | + | |
5554 | 5554 | | |
5555 | 5555 | | |
5556 | 5556 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
661 | | - | |
662 | | - | |
663 | | - | |
| 662 | + | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
0 commit comments