small fixes

This commit is contained in:
Antonio Andelic 2022-07-13 13:01:13 +00:00
parent 3b5bdd1e2a
commit 93d8b8bb61
3 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public:
void finalize(const String & reason) override;
Coordination::KeeperApiVersion getApiVersion() override
Coordination::KeeperApiVersion getApiVersion() override
{
return KeeperApiVersion::V0;
}

View File

@ -1085,7 +1085,7 @@ void ZooKeeper::initApiVersion()
if (response.error != Coordination::Error::ZOK)
return;
uint8_t keeper_version{0};
uint8_t keeper_version{0};
DB::ReadBufferFromOwnString buf(response.data);
DB::readIntText(keeper_version, buf);
keeper_api_version = static_cast<Coordination::KeeperApiVersion>(keeper_version);

View File

@ -85,6 +85,7 @@ NamesAndTypesList ZooKeeperLogElement::getNamesAndTypes()
{"Multi", static_cast<Int16>(Coordination::OpNum::Multi)},
{"Auth", static_cast<Int16>(Coordination::OpNum::Auth)},
{"SessionID", static_cast<Int16>(Coordination::OpNum::SessionID)},
{"FilteredList", static_cast<Int16>(Coordination::OpNum::FilteredList)},
});
auto error_enum = getCoordinationErrorCodesEnumType();