Skip to content

Commit

Permalink
[HBASE-27789] Backport "HBASE-24914 Remove duplicate code appearing c…
Browse files Browse the repository at this point in the history
…ontinuously in method ReplicationPeerManager.updatePeerConfig" to branch-2 (#5180)

Signed-off-by: Wellington Chevreuil <[email protected]>
  • Loading branch information
xmlee authored Apr 14, 2023
1 parent 3dda428 commit 690ca8c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ public void updatePeerConfig(String peerId, ReplicationPeerConfig peerConfig)
// 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));
Expand Down

0 comments on commit 690ca8c

Please sign in to comment.