1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-20 01:42:27 +03:00

Changed ownership of the socket.

This commit is contained in:
Patrick LeBlanc
2019-02-04 14:44:35 -06:00
parent 4769e896f8
commit 8ef4e09aa4
23 changed files with 105 additions and 108 deletions

View File

@@ -19,8 +19,7 @@ PosixTask::PosixTask(int _sock, uint _length) :
remainingLengthInStream(_length),
remainingLengthForCaller(_length),
bufferPos(0),
bufferLen(0),
socketReturned(false)
bufferLen(0)
{
ioc = IOCoordinator::get();
}
@@ -28,8 +27,6 @@ PosixTask::PosixTask(int _sock, uint _length) :
PosixTask::~PosixTask()
{
consumeMsg();
if (!socketReturned)
returnSocket();
}
void PosixTask::handleError(const char *name, int errCode)
@@ -46,17 +43,6 @@ void PosixTask::handleError(const char *name, int errCode)
// TODO: construct and log a message
cout << name << " caught an error: " << strerror_r(errCode, buf, 80) << endl;
socketError();
}
void PosixTask::returnSocket()
{
socketReturned = true;
}
void PosixTask::socketError()
{
socketReturned = true;
}
uint PosixTask::getRemainingLength()