SentinelServersConfig: copy username in copy constructor

https://github.com/redisson/redisson/issues/3948 introduced sentinel username, but forgot to copy it in copy constructor. Result: authentication with username and password is not possible because config is always copied in org.redisson.Redisson constructor.
Signed-off-by: Nicolas Herzog <nicolas.herzog@emineo.ch>
pull/4113/head
nicolas-tg-ch 3 years ago committed by Nicolas Herzog
parent d649843210
commit 7e443d3eca

@ -68,6 +68,7 @@ public class SentinelServersConfig extends BaseMasterSlaveServersConfig<Sentinel
setScanInterval(config.getScanInterval());
setNatMapper(config.getNatMapper());
setCheckSentinelsList(config.isCheckSentinelsList());
setSentinelUsername(config.getSentinelUsername());
setSentinelPassword(config.getSentinelPassword());
setCheckSlaveStatusWithSyncing(config.isCheckSlaveStatusWithSyncing());
setSentinelsDiscovery(config.isSentinelsDiscovery());

Loading…
Cancel
Save