Commit 68724fd
committed
fix(server): handle INFO command with multiple sections correctly
Fix INFO command to support multiple sections, resolving syntax errors
when more than one section is requested. Valid sections are returned,
while invalid ones are ignored, matching Redis server behavior.
Adds tests for positive and negative multi-section cases.
Improves code clarity and ensures metrics are fetched efficiently for
relevant sections.
Signed-off-by: Gil Levkovich <[email protected]>1 parent 1e14f80 commit 68724fd
2 files changed
+51
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
3338 | 3336 | | |
3339 | | - | |
3340 | | - | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
3341 | 3345 | | |
3342 | 3346 | | |
3343 | | - | |
3344 | | - | |
3345 | | - | |
3346 | | - | |
3347 | | - | |
3348 | | - | |
| 3347 | + | |
3349 | 3348 | | |
3350 | 3349 | | |
3351 | 3350 | | |
3352 | | - | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
3353 | 3372 | | |
3354 | 3373 | | |
3355 | 3374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
649 | 667 | | |
0 commit comments