cluster discovery init only with zookeeper

This commit is contained in:
vdimir
2021-12-27 15:26:08 +03:00
parent 4816d1afcc
commit e7d3dbeebd
4 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -841,7 +841,7 @@ if (ThreadFuzzer::instance().isEffective())
// in a lot of places. For now, disable updating log configuration without server restart.
//setTextLog(global_context->getTextLog());
updateLevels(*config, logger());
global_context->setClustersConfig(config);
global_context->setClustersConfig(config, has_zookeeper);
global_context->setMacros(std::make_unique<Macros>(*config, "macros", log));
global_context->setExternalAuthenticatorsConfig(*config);
@@ -1555,7 +1555,8 @@ if (ThreadFuzzer::instance().isEffective())
server.start();
LOG_INFO(log, "Ready for connections.");
global_context->registerNodeForClusterDiscovery();
if (has_zookeeper)
global_context->registerNodeForClusterDiscovery();
SCOPE_EXIT_SAFE({
LOG_DEBUG(log, "Received termination signal.");