mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Small fix
This commit is contained in:
parent
70f3d3a863
commit
e129f8ce00
@ -207,14 +207,14 @@ constexpr auto * SERVER_NOT_ACTIVE_MSG = "This instance is not currently serving
|
||||
|
||||
String MonitorCommand::run()
|
||||
{
|
||||
if (!keeper_dispatcher.isServerActive())
|
||||
return SERVER_NOT_ACTIVE_MSG;
|
||||
|
||||
auto & stats = keeper_dispatcher.getKeeperConnectionStats();
|
||||
Keeper4LWInfo keeper_info = keeper_dispatcher.getKeeper4LWInfo();
|
||||
|
||||
const auto & state_machine = keeper_dispatcher.getStateMachine();
|
||||
|
||||
if (!keeper_dispatcher.isServerActive())
|
||||
return SERVER_NOT_ACTIVE_MSG;
|
||||
|
||||
StringBuffer ret;
|
||||
print(ret, "version", String(VERSION_DESCRIBE) + "-" + VERSION_GITHASH);
|
||||
|
||||
|
@ -118,11 +118,6 @@ public:
|
||||
|
||||
bool isServerActive() const;
|
||||
|
||||
bool serverIsRecovering() const
|
||||
{
|
||||
return server->isRecovering();
|
||||
}
|
||||
|
||||
/// Registered in ConfigReloader callback. Add new configuration changes to
|
||||
/// update_configuration_queue. Keeper Dispatcher apply them asynchronously.
|
||||
void updateConfiguration(const Poco::Util::AbstractConfiguration & config);
|
||||
|
Loading…
Reference in New Issue
Block a user