codings-dan commented on a change in pull request #614:
URL: https://github.com/apache/ratis/pull/614#discussion_r817630346
##########
File path:
ratis-server/src/main/java/org/apache/ratis/server/raftlog/LogProtoUtils.java
##########
@@ -200,8 +200,11 @@ public static RaftConfiguration
toRaftConfiguration(LogEntryProto entry) {
Preconditions.assertTrue(entry.hasConfigurationEntry());
final RaftConfigurationProto proto = entry.getConfigurationEntry();
final List<RaftPeer> conf = ProtoUtils.toRaftPeers(proto.getPeersList());
- final List<RaftPeer> oldConf = proto.getOldPeersCount() == 0? null
+ final List<RaftPeer> listener =
ProtoUtils.toRaftPeers(proto.getListenersList());
+ final List<RaftPeer> oldConf = proto.getOldPeersCount() == 0 ? null
: ProtoUtils.toRaftPeers(proto.getOldPeersList());
- return ServerImplUtils.newRaftConfiguration(conf, entry.getIndex(),
oldConf);
+ final List<RaftPeer> oldListener = proto.getOldListenersCount() == 0 ? null
+ : ProtoUtils.toRaftPeers(proto.getOldListenersList());
+ return ServerImplUtils.newRaftConfiguration(conf, listener,
entry.getIndex(), oldConf, oldListener);
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]