Hello everyone, recently an issue was found for Swap DB command, consider the following example:
127.0.0.1:6500> config get save 1) "save" 2) "10 5" 127.0.0.1:6500> dbsize (integer) 1 127.0.0.1:6500> select 6 OK 127.0.0.1:6500[6]> dbsize (integer) 5 127.0.0.1:6500[6]> lastsave (integer) 1582467466 127.0.0.1:6500[6]> swapdb 0 6 OK 127.0.0.1:6500[6]> lastsave (integer) 1582467466 127.0.0.1:6500[6]> lastsave (integer) 1582467466
Save conndition is 10s at last 5 changes in DB, Although the size of db0 and db6 have 1 and 5 keys, after swapping db the rdb save was not triggered.
Comment From: hwware
https://github.com/antirez/redis/pull/6925
Comment From: hwware
The above PR fixed this issue....