Skip to content

Commit e1e33fa

Browse files
committed
Fix node to follow
1 parent 68bdc08 commit e1e33fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/coordination/Coordinator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ PublishWithJoinResponse handlePublishRequest(PublishRequest publishRequest) {
231231
return publishWithJoinResponse;
232232
} finally {
233233
if (sourceNode.equals(getLocalNode()) || success == false) {
234-
preVoteCollector.update(getPreVoteResponse(), getLocalNode());
234+
preVoteCollector.update(getPreVoteResponse(), sourceNode);
235235
} else {
236236
becomeFollower("handlePublishRequest", sourceNode); // also updates preVoteCollector
237237
}

0 commit comments

Comments
 (0)