Commit 1bd6859
Fix empty primary may have dirty slots data due to bad migration (valkey-io#1285)
If we become an empty primary for some reason, we still need to
check if we need to delete dirty slots, because we may have dirty
slots data left over from a bad migration. Like the target node forcibly
executes CLUSTER SETSLOT NODE to take over the slot without
performing key migration.
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Viktor Söderqvist <[email protected]>1 parent a127540 commit 1bd6859
File tree
2 files changed
+32
-1
lines changed- src
- tests/unit/cluster
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2483 | 2483 | | |
2484 | 2484 | | |
2485 | 2485 | | |
| 2486 | + | |
2486 | 2487 | | |
2487 | 2488 | | |
2488 | 2489 | | |
| |||
2709 | 2710 | | |
2710 | 2711 | | |
2711 | 2712 | | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
2712 | 2719 | | |
2713 | 2720 | | |
2714 | 2721 | | |
| |||
2718 | 2725 | | |
2719 | 2726 | | |
2720 | 2727 | | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
2721 | 2732 | | |
2722 | 2733 | | |
2723 | 2734 | | |
| |||
6098 | 6109 | | |
6099 | 6110 | | |
6100 | 6111 | | |
6101 | | - | |
| 6112 | + | |
6102 | 6113 | | |
6103 | 6114 | | |
6104 | 6115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
0 commit comments