Commit 54e2de9
authored
fix(server): handle INFO command with multiple sections correctly (#6093)
* 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]>
* fix(server): handle INFO command with multiple sections correctly(fixes)
Signed-off-by: Gil Levkovich <[email protected]>
---------
Signed-off-by: Gil Levkovich <[email protected]>1 parent 8df2bd8 commit 54e2de9
2 files changed
+50
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3374 | 3374 | | |
3375 | 3375 | | |
3376 | 3376 | | |
3377 | | - | |
3378 | | - | |
3379 | | - | |
3380 | | - | |
3381 | | - | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
3382 | 3380 | | |
3383 | | - | |
3384 | | - | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
3385 | 3388 | | |
3386 | 3389 | | |
3387 | | - | |
3388 | | - | |
3389 | | - | |
3390 | | - | |
| 3390 | + | |
3391 | 3391 | | |
3392 | 3392 | | |
3393 | 3393 | | |
3394 | 3394 | | |
3395 | 3395 | | |
3396 | | - | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
3397 | 3417 | | |
3398 | 3418 | | |
3399 | 3419 | | |
| |||
| 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