Commit 2df56d8
authored
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]>1 parent a2d22c6 commit 2df56d8
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 | |
|---|---|---|---|
| |||
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
| 2454 | + | |
2454 | 2455 | | |
2455 | 2456 | | |
2456 | 2457 | | |
| |||
2677 | 2678 | | |
2678 | 2679 | | |
2679 | 2680 | | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
2680 | 2687 | | |
2681 | 2688 | | |
2682 | 2689 | | |
| |||
2686 | 2693 | | |
2687 | 2694 | | |
2688 | 2695 | | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
2689 | 2700 | | |
2690 | 2701 | | |
2691 | 2702 | | |
| |||
6069 | 6080 | | |
6070 | 6081 | | |
6071 | 6082 | | |
6072 | | - | |
| 6083 | + | |
6073 | 6084 | | |
6074 | 6085 | | |
6075 | 6086 | | |
| |||
| 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