Skip to content

Commit 6b2fd5e

Browse files
committed
revert 99f4e71
and fix it in the right place
1 parent dbf2f63 commit 6b2fd5e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Placeholder for the next version (at the beginning of the line):
44
## __WORK IN PROGRESS__
55
-->
6+
7+
## __WORK IN PROGRESS__
8+
* (foxriver76) we now fixed the multihost functionality in the correct spot
9+
610
## 3.3.20 (2021-11-24)
711
* (Apollon77) Fixed the multihost functionality
812

main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ function _startMultihost(_config, secret) {
159159
* @returns {boolean|void}
160160
*/
161161
function startMultihost(__config) {
162-
const objectData = objects.getStatus();
163-
// only main host controller needs to check/fix the host assignments from the instances
164-
if (compactGroupController || !objectData.server) {
162+
if (compactGroupController) {
165163
return;
166164
}
167165

@@ -939,8 +937,10 @@ function delObjects(objs, callback) {
939937
* @return none
940938
*/
941939
function checkHost(callback) {
942-
// only main host controller needs to check/fix the host assignments from the instances
943-
if (compactGroupController) {
940+
const objectData = objects.getStatus();
941+
// only file master host controller needs to check/fix the host assignments from the instances
942+
// for redis it is currently not possible to detect a single host system with a changed hostname for sure!
943+
if (compactGroupController || !objectData.server) {
944944
return callback && callback();
945945
}
946946

0 commit comments

Comments
 (0)