Skip to content

Commit

Permalink
HBASE-24914 Remove duplicate code appearing continuously in method Re…
Browse files Browse the repository at this point in the history
…plicationPeerManager.updatePeerConfig (#2287)


Signed-off-by: Jan Hentschel <[email protected]>
  • Loading branch information
ddupg authored Aug 20, 2020
1 parent 9e98182 commit 65d28da
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,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 65d28da

Please sign in to comment.