antirez/redis — Issue #290: slaveof will resync - even if already a slave
Author: sunnyviber
Created: 2012-01-08 14:08:40+00:00
State: open

'slaveof' doesn't check if it's already a slave. That is:

slaveof 192.168.1.1 6379

followed by:

slaveof 192.168.1.1 6379

will cause the slave to attempt a new resync - although nothing actually changed.
Redis should check if an action is really needed - and do nothing if after the command is executed the state doesn't change.