Fixing build.

This commit is contained in:
Nikolai Kochetov 2020-12-09 19:17:59 +03:00
parent 32b38f389e
commit 0e44a22f43
4 changed files with 5 additions and 4 deletions

View File

@ -14,4 +14,5 @@ target_link_libraries(clickhouse_common_config
Poco::XML
PRIVATE
string_utils
_boost_context
)

View File

@ -40,7 +40,7 @@ bool ReadBufferFromPocoSocket::nextImpl()
/// If fiber is specified, and read is blocking, run fiber and try again later.
/// It is expected that file descriptor may be polled externally.
/// Note that receive timeout is not checked here. External code should check it while polling.
while (bytes_read < 0 && fiber && (errno == POCO_EAGAIN || errno == POCO_EWOULDBLOCK))
while (bytes_read < 0 && fiber && (errno == EAGAIN || errno == EWOULDBLOCK))
{
//fiber->fd = socket.impl()->sockfd();
//fiber->timeout = socket.impl()->getReceiveTimeout();

View File

@ -1,8 +1,8 @@
#include <iostream>
/// #define BOOST_USE_UCONTEXT
#include <boost/context/fiber.hpp>
#include <boost/context/pooled_fixedsize_stack.hpp>
#include <boost/context/segmented_stack.hpp>
// #include <boost/context/pooled_fixedsize_stack.hpp>
// #include <boost/context/segmented_stack.hpp>
#include <Common/Exception.h>
#include <Common/FiberStack.h>

View File

@ -50,7 +50,7 @@ private:
bool is_async_state = false;
std::unique_ptr<RemoteQueryExecutorReadContext> read_context;
int fd;
int fd = -1;
};
/// Totals source from RemoteQueryExecutor.