Commit 3cdae2e
authored
Fix race in new pruning of device lists tables. (#19709)
Follows on from #19473.
We should be recording where we have deleted up to in the same
transaction as we perform the delete, rather than at the end. This code
only starts deleting rows after a month (and the original PR isn't in a
release yet), so no server should have run into this problem yet.
Also let's log more regularly, as the initial set of deletions will
likely take a long time.1 parent a9361c4 commit 3cdae2e
2 files changed
Lines changed: 28 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2583 | 2583 | | |
2584 | 2584 | | |
2585 | 2585 | | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2586 | 2596 | | |
2587 | 2597 | | |
2588 | | - | |
| 2598 | + | |
2589 | 2599 | | |
2590 | 2600 | | |
2591 | 2601 | | |
2592 | 2602 | | |
2593 | 2603 | | |
2594 | | - | |
2595 | | - | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2596 | 2620 | | |
2597 | 2621 | | |
2598 | 2622 | | |
2599 | 2623 | | |
2600 | 2624 | | |
2601 | 2625 | | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
2607 | | - | |
2608 | | - | |
2609 | | - | |
2610 | | - | |
2611 | | - | |
2612 | | - | |
2613 | | - | |
2614 | | - | |
2615 | | - | |
2616 | 2626 | | |
2617 | 2627 | | |
2618 | 2628 | | |
| |||
0 commit comments