HBASE-24914 Remove duplicate code appearing continuously in method ReplicationPeerManager.updatePeerConfig (#2287)
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
This commit is contained in:
parent
9e98182aa6
commit
65d28da7c2
|
@ -279,8 +279,6 @@ public class ReplicationPeerManager {
|
|||
// we need to use the new conf to overwrite the old one.
|
||||
newPeerConfigBuilder.putAllConfiguration(oldPeerConfig.getConfiguration());
|
||||
newPeerConfigBuilder.putAllConfiguration(peerConfig.getConfiguration());
|
||||
newPeerConfigBuilder.putAllConfiguration(oldPeerConfig.getConfiguration());
|
||||
newPeerConfigBuilder.putAllConfiguration(peerConfig.getConfiguration());
|
||||
ReplicationPeerConfig newPeerConfig = newPeerConfigBuilder.build();
|
||||
peerStorage.updatePeerConfig(peerId, newPeerConfig);
|
||||
peers.put(peerId, new ReplicationPeerDescription(peerId, desc.isEnabled(), newPeerConfig,
|
||||
|
|
Loading…
Reference in New Issue