1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-13 16:01:32 +03:00

Checkpointing some stuff. Doesn't work yet.

This commit is contained in:
Patrick LeBlanc
2019-06-06 15:47:15 -05:00
parent 98c9cd7b22
commit 15c256b011
4 changed files with 59 additions and 27 deletions

View File

@ -86,10 +86,20 @@ int SocketPool::send_recv(messageqcpp::ByteStream &in, messageqcpp::ByteStream *
{
uint count = 0;
uint length = in.length();
int sock = getSocket();
int sock = -1;
const uint8_t *inbuf = in.buf();
int err = 0;
while (sock < 0)
{
sock = getSocket();
if (sock < 0)
{
log(logging::LOG_TYPE_ERROR, "SocketPool::send_recv(): failed to get a connection, retrying in 5 sec...");
sleep(5);
}
}
/* TODO: make these writes not send SIGPIPE */
storagemanager::sm_msg_header hdr;
hdr.type = storagemanager::SM_MSG_START;