Making sentinel flush config on +slave
Making sentinel flush config on +slave

Originally, only the +slave event which occurs when a slave is
reconfigured during sentinelResetMasterAndChangeAddress triggers a flush
of the config to disk.  However, newly discovered slaves don't
apparently trigger this flush but do trigger the +slave event issuance.

So if you start up a sentinel, add a master, then add a slave to the
master (as a way to reproduce it) you'll see the +slave event issued,
but the sentinel config won't be updated with the known-slave entry.

This change makes sentinel do the flush of the config if a new slave is
deteted in sentinelRefreshInstanceInfo.

jaambee/redis,laurencee/redis,adamweixuan/redis,jacklee0810/redis,adamweixuan/redis,enginekit/redis,liqiang199105/redis,upsoft/redis,ideaar/redis,ideaar/redis,Jonavin/redis,Cybermaxs/redis,kolonse/redis,miminus/redis,enginekit/redis,jacklee0810/redis,liqiang199105/redis,miminus/redis,kts12345/redis,janeasystems/redis,jaambee/redis,Jonavin/redis,liqiang199105/redis,jacklee0810/redis,Cybermaxs/redis,jaambee/redis,damy/redis,adamweixuan/redis,miminus/redis,janeasystems/redis,janeasystems/redis,upsoft/redis,janeasystems/redis,jaambee/redis,hanmichael/redis,Cybermaxs/redis,jqk6/redis,jqk6/redis,ScottKaiGu/redis,ScottKaiGu/redis,jaambee/redis,Jonavin/redis,quangnguyen90/redis,quangnguyen90/redis,kts12345/redis,jqk6/redis,ScottKaiGu/redis,damy/redis,enginekit/redis,ideaar/redis,jqk6/redis,alpha8/redis,ScottKaiGu/redis,hanmichael/redis,laurencee/redis,ScottKaiGu/redis,laurencee/redis,ideaar/redis,kolonse/redis,upsoft/redis,enginekit/redis,laurencee/redis,Jonavin/redis,upsoft/redis,hanmichael/redis,janeasystems/redis,enginekit/redis,upsoft/redis,alpha8/redis,hanmichael/redis,Cybermaxs/redis,jacklee0810/redis,hanmichael/redis,quangnguyen90/redis,damy/redis,quangnguyen90/redis,kts12345/redis,alpha8/redis,miminus/redis,adamweixuan/redis,kts12345/redis,quangnguyen90/redis,jacklee0810/redis,jqk6/redis,laurencee/redis,ideaar/redis,kolonse/redis,alpha8/redis,liqiang199105/redis,kolonse/redis,kts12345/redis,liqiang199105/redis,Jonavin/redis,adamweixuan/redis,kolonse/redis,miminus/redis,Cybermaxs/redis,alpha8/redis,damy/redis,damy/redis