mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
Fix special build
This commit is contained in:
parent
f3f93dd06c
commit
c838013b69
@ -267,6 +267,7 @@ void RemoteQueryExecutor::sendQueryUnlocked(ClientInfo::QueryKind query_kind, As
|
|||||||
|
|
||||||
int RemoteQueryExecutor::sendQueryAsync()
|
int RemoteQueryExecutor::sendQueryAsync()
|
||||||
{
|
{
|
||||||
|
#if defined(OS_LINUX)
|
||||||
std::lock_guard lock(was_cancelled_mutex);
|
std::lock_guard lock(was_cancelled_mutex);
|
||||||
if (was_cancelled)
|
if (was_cancelled)
|
||||||
return -1;
|
return -1;
|
||||||
@ -282,6 +283,10 @@ int RemoteQueryExecutor::sendQueryAsync()
|
|||||||
read_context->resume();
|
read_context->resume();
|
||||||
|
|
||||||
return read_context->isQuerySent() ? -1 : read_context->getFileDescriptor();
|
return read_context->isQuerySent() ? -1 : read_context->getFileDescriptor();
|
||||||
|
#else
|
||||||
|
sendQuery();
|
||||||
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Block RemoteQueryExecutor::readBlock()
|
Block RemoteQueryExecutor::readBlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user