[HBASE-27789] Backport "HBASE-24914 Remove duplicate code appearing continuously in method ReplicationPeerManager.updatePeerConfig" to branch-2 (#5180)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
This commit is contained in:
parent
3dda428417
commit
690ca8c562
|
@ -216,8 +216,6 @@ public class ReplicationPeerManager {
|
||||||
// we need to use the new conf to overwrite the old one.
|
// we need to use the new conf to overwrite the old one.
|
||||||
newPeerConfigBuilder.putAllConfiguration(oldPeerConfig.getConfiguration());
|
newPeerConfigBuilder.putAllConfiguration(oldPeerConfig.getConfiguration());
|
||||||
newPeerConfigBuilder.putAllConfiguration(peerConfig.getConfiguration());
|
newPeerConfigBuilder.putAllConfiguration(peerConfig.getConfiguration());
|
||||||
newPeerConfigBuilder.putAllConfiguration(oldPeerConfig.getConfiguration());
|
|
||||||
newPeerConfigBuilder.putAllConfiguration(peerConfig.getConfiguration());
|
|
||||||
ReplicationPeerConfig newPeerConfig = newPeerConfigBuilder.build();
|
ReplicationPeerConfig newPeerConfig = newPeerConfigBuilder.build();
|
||||||
peerStorage.updatePeerConfig(peerId, newPeerConfig);
|
peerStorage.updatePeerConfig(peerId, newPeerConfig);
|
||||||
peers.put(peerId, new ReplicationPeerDescription(peerId, desc.isEnabled(), newPeerConfig));
|
peers.put(peerId, new ReplicationPeerDescription(peerId, desc.isEnabled(), newPeerConfig));
|
||||||
|
|
Loading…
Reference in New Issue