From c838013b692776501937dda89c5f8f5390cd0b1f Mon Sep 17 00:00:00 2001 From: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> Date: Fri, 24 Mar 2023 21:34:21 +0100 Subject: [PATCH] Fix special build --- src/QueryPipeline/RemoteQueryExecutor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/QueryPipeline/RemoteQueryExecutor.cpp b/src/QueryPipeline/RemoteQueryExecutor.cpp index 619bdadca34..bf57f481519 100644 --- a/src/QueryPipeline/RemoteQueryExecutor.cpp +++ b/src/QueryPipeline/RemoteQueryExecutor.cpp @@ -267,6 +267,7 @@ void RemoteQueryExecutor::sendQueryUnlocked(ClientInfo::QueryKind query_kind, As int RemoteQueryExecutor::sendQueryAsync() { +#if defined(OS_LINUX) std::lock_guard lock(was_cancelled_mutex); if (was_cancelled) return -1; @@ -282,6 +283,10 @@ int RemoteQueryExecutor::sendQueryAsync() read_context->resume(); return read_context->isQuerySent() ? -1 : read_context->getFileDescriptor(); +#else + sendQuery(); + return -1; +#endif } Block RemoteQueryExecutor::readBlock()