Small fix

This commit is contained in:
Antonio Andelic 2022-04-19 12:39:34 +00:00
parent 70f3d3a863
commit e129f8ce00
2 changed files with 3 additions and 8 deletions

View File

@ -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);

View File

@ -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);