Commit 7b8dcc0
committed
MDEV-39440: replay context throwed a warning for a query after altering an index
The problem is that handler->multi_range_read_info_const() call in
check_quick_select() returned rows equal to HA_POS_ERROR, both during
context capture and replay. However, we never stored the ranges info
into the context when rows=HA_POS_ERROR. However, during replay, we try
to infuse stats for the given range, and since no match was found in the
context, we produced a warning.
Solution is to store range_info for all the ranges even when they get
HA_POS_ERROR number of rows.1 parent 467b06c commit 7b8dcc0
3 files changed
Lines changed: 62 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
275 | 298 | | |
276 | 299 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
119 | 147 | | |
120 | 148 | | |
121 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12471 | 12471 | | |
12472 | 12472 | | |
12473 | 12473 | | |
| 12474 | + | |
| 12475 | + | |
| 12476 | + | |
12474 | 12477 | | |
12475 | 12478 | | |
12476 | 12479 | | |
| |||
12534 | 12537 | | |
12535 | 12538 | | |
12536 | 12539 | | |
12537 | | - | |
12538 | 12540 | | |
12539 | 12541 | | |
12540 | 12542 | | |
| |||
12560 | 12562 | | |
12561 | 12563 | | |
12562 | 12564 | | |
12563 | | - | |
12564 | | - | |
12565 | | - | |
12566 | | - | |
12567 | | - | |
12568 | | - | |
12569 | | - | |
12570 | | - | |
12571 | | - | |
12572 | 12565 | | |
12573 | 12566 | | |
12574 | 12567 | | |
| |||
12597 | 12590 | | |
12598 | 12591 | | |
12599 | 12592 | | |
| 12593 | + | |
| 12594 | + | |
| 12595 | + | |
| 12596 | + | |
| 12597 | + | |
| 12598 | + | |
| 12599 | + | |
| 12600 | + | |
12600 | 12601 | | |
12601 | 12602 | | |
12602 | 12603 | | |
| |||
0 commit comments