Commit 592ded7
committed
Convert the value to int type only if it exists in CLIENT INFO
Currently, client info will try to convert the set of keys to the int type
without checking if it exists or not. For example, both `argv-mem` and `tot-mem`
are introduced in 6.2, and force converting an non-existent value might
cause an exception in older version. To keep the compatibility with the older/newer
Redis server, we could just convert it only if the key exists.1 parent 513c8d0 commit 592ded7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| |||
0 commit comments