Commit 2e0a45f
authored
fix(set_family): Don't replicate SPOP if nothing was removed (#5936)
* fix(set_family): Don't replicate SPOP if nothing was removed
If nothing is removed with SPOP command we are rewriting command as SREM
with invalid syntax. This replicated SREM command fails on replica side
and we don't increment LSN. Fixed by skipping replication if SPOP didn't
remove anything.
Enable logging on replica if command verification failed.
Signed-off-by: mkaruza <[email protected]>
* fix(zset_family): Disable AUTOJOURNAL for ZRANGESTORE
ZRANGESTORE is rewriten as SREM and ZADD so auto journal needs to be
disabled.
* feat(replica): Report DFATAL error only in ACTIVE and RUNNING state
---------
Signed-off-by: mkaruza <[email protected]>1 parent 370ef9c commit 2e0a45f
File tree
4 files changed
+14
-5
lines changed- src/server
4 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
1455 | | - | |
| 1455 | + | |
| 1456 | + | |
1456 | 1457 | | |
1457 | 1458 | | |
1458 | 1459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1009 | 1016 | | |
1010 | 1017 | | |
1011 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2855 | 2855 | | |
2856 | 2856 | | |
2857 | 2857 | | |
2858 | | - | |
| 2858 | + | |
| 2859 | + | |
2859 | 2860 | | |
2860 | 2861 | | |
2861 | 2862 | | |
| |||
0 commit comments