New masters with slots are now targets of migration if others are.
New masters with slots are now targets of migration if others are.

This fixes issue #3043.

Before this fix, after a complete resharding of a master slots
to other nodes, the master remains empty and the slaves migrate away
to other masters with non-zero nodes. However the old master now empty,
is no longer considered a target for migration, because the system has
no way to tell it had slaves in the past.

This fix leaves the algorithm used in the past untouched, but adds a
new rule. When a new or old master which is empty and without slaves,
are assigend with their first slot, if other masters in the cluster have
slaves, they are automatically considered to be targets for replicas
migration.

kensou97/redis,arijitvt/redis,YongMan/redis,neomantra/redis,pmem/redis,ctripcorp/redis,badboy/redis,sunheehnus/redis,ofirluzon/redis,sunheehnus/redis,hgl888/redis,yossigo/redis,zguangyu/redis,colstrom/redis,neomantra/redis,YongMan/redis,soveran/redis,GitHubMota/redis,ofirluzon/redis,ctripcorp/redis,h0x91b/redis,spinlock/redis,PKRoma/redis,colstrom/redis,arijitvt/redis,Markgorden/redis,soveran/redis,hgl888/redis,soloestoy/redis,YongMan/redis,ctripcorp/redis,sunheehnus/redis,charsyam/redis,rogerchina/redis,h0x91b/redis,OmarQunsul/graph-redis,neomantra/redis,rogerchina/redis,Markgorden/redis,oranagra/redis,Markgorden/redis,zguangyu/redis,colstrom/redis,PKRoma/redis,oranagra/redis,arijitvt/redis,yossigo/redis,PKRoma/redis,hgl888/redis,kensou97/redis,Sciumo/redis,soloestoy/redis,YongMan/redis,h0x91b/redis,spinlock/redis,antirez/redis,ton31337/redis,badboy/redis,antirez/redis,antirez/redis,antirez/redis,oranagra/redis,Sciumo/redis,charsyam/redis,oranagra/redis,spinlock/redis,Sciumo/redis,soloestoy/redis,dreamquster/redis,GitHubMota/redis,hgl888/redis,Markgorden/redis,soveran/redis,PKRoma/redis,dreamquster/redis,soloestoy/redis,nnog/redis,arijitvt/redis,sunheehnus/redis,ton31337/redis,charsyam/redis,soveran/redis,GitHubMota/redis,zguangyu/redis,rogerchina/redis,yossigo/redis,charsyam/redis,OmarQunsul/graph-redis,pmem/redis,kensou97/redis,rogerchina/redis,zguangyu/redis,dreamquster/redis,ofirluzon/redis,pmem/redis,badboy/redis,PKRoma/redis,kensou97/redis,nnog/redis,neomantra/redis,spinlock/redis,Sciumo/redis,ctripcorp/redis,charsyam/redis,soloestoy/redis,OmarQunsul/graph-redis,pmem/redis,h0x91b/redis,yossigo/redis,nnog/redis,neomantra/redis,OmarQunsul/graph-redis,ton31337/redis,oranagra/redis,badboy/redis,nnog/redis,colstrom/redis,GitHubMota/redis,ofirluzon/redis,yossigo/redis,dreamquster/redis,ton31337/redis,ofirluzon/redis