Fix special build

This commit is contained in:
Kruglov Pavel 2023-03-24 21:34:21 +01:00 committed by GitHub
parent f3f93dd06c
commit c838013b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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