-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit ce56d1c
Convert the value to int type only if it exists in CLIENT INFO (#3688)
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 or newer versions. To keep the compatibility with the older/newer
Redis server, we could just convert it only if the key exists.1 parent 310813a commit ce56d1c
1 file changed
+2
-1
lines changedOriginal 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