Commit 28f48ff
authored
Changes and fixes for the new DELIFEQ command (#2120)
DELIFEQ was added in #1975 but had some issues.
Do some refactoring to reduce the number of lines of code,
write commands need to increment dirty and we can propagate
it as DEL command.
Changes:
1. Replicate as DEL is important for compatibility with replicas
running an older Valkey version, also it can save the compare
logic, like other commands like GETDEL.
2. Signal modified key is for WATCH and do invalidate client-side
caching (client tracking)
3. Keyspace notifications.
4. Dirty++ indicates there are unsaved changes for RDB.
5. Using shared strings for the RESP zero and one replies for the
code cleanup.
6. Add FAST command flag and remove the ACCESS key specs flag.
Signed-off-by: Binbin <[email protected]>1 parent 053bf9e commit 28f48ff
File tree
4 files changed
+27
-21
lines changed- src
- commands
- tests/unit/type
4 files changed
+27
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10474 | 10474 | | |
10475 | 10475 | | |
10476 | 10476 | | |
10477 | | - | |
| 10477 | + | |
10478 | 10478 | | |
10479 | 10479 | | |
10480 | 10480 | | |
| |||
11341 | 11341 | | |
11342 | 11342 | | |
11343 | 11343 | | |
11344 | | - | |
| 11344 | + | |
11345 | 11345 | | |
11346 | 11346 | | |
11347 | 11347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
387 | 388 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 389 | + | |
| 390 | + | |
399 | 391 | | |
400 | | - | |
401 | | - | |
| 392 | + | |
| 393 | + | |
402 | 394 | | |
403 | 395 | | |
404 | 396 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 397 | + | |
409 | 398 | | |
410 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
411 | 405 | | |
412 | 406 | | |
413 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
780 | 792 | | |
781 | 793 | | |
782 | 794 | | |
| |||
0 commit comments