Happy new year everyone, recently we found an issue in current unstable version of Redis cli interactive mode, db number mismatches when wrapping select db command in MULTI if we discard the transaction later on, following is an example, note initially db 0 and 5 are empty:
127.0.0.1:6379> set foo db0
OK
127.0.0.1:6379> select 5
OK
127.0.0.1:6379[5]> set foo db5
OK
127.0.0.1:6379[5]> select 0
OK
127.0.0.1:6379> multi
OK
127.0.0.1:6379> select 5
QUEUED
127.0.0.1:6379[5]> discard
OK
127.0.0.1:6379[5]> get foo
"db0"
127.0.0.1:6379[5]>
Please note the current db is still in 0 but the display shows in db5. I did a fix in the following PR, can anyone take look this? thanks you very much!