Fix standalone build

This commit is contained in:
Antonio Andelic 2022-11-10 10:49:00 +01:00
parent f2a9b5933d
commit 8aeb406d82
3 changed files with 8 additions and 2 deletions

View File

@ -58,6 +58,14 @@ int mainEntryClickHouseKeeper(int argc, char ** argv)
}
}
#ifdef KEEPER_STANDALONE_BUILD
void collectCrashLog(
Int32, UInt64, const String &, const StackTrace &)
{}
#endif
namespace DB
{

View File

@ -214,7 +214,6 @@ void KeeperDispatcher::snapshotThread()
void KeeperDispatcher::setResponse(int64_t session_id, const Coordination::ZooKeeperResponsePtr & response)
{
std::lock_guard lock(session_to_response_callback_mutex);
LOG_INFO(&Poco::Logger::get("LOGGER"), "Sending {} for {}", session_id, response->getOpNum());
/// Special new session response.
if (response->xid != Coordination::WATCH_XID && response->getOpNum() == Coordination::OpNum::SessionID)

View File

@ -774,7 +774,6 @@ struct KeeperStorageHeartbeatRequestProcessor final : public KeeperStorageReques
Coordination::ZooKeeperResponsePtr
process(KeeperStorage & /* storage */, int64_t /* zxid */) const override
{
LOG_INFO(&Poco::Logger::get("LOGGER"), "Processing heartbeat");
return zk_request->makeResponse();
}
};