You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-372: Modify condition which message is logged. Before was logging once a second on every timeout.
This commit is contained in:
@ -436,10 +436,16 @@ const SBS InetStreamSocket::read(const struct ::timespec* timeout, bool* isTimeO
|
||||
uint8_t* msglenp = reinterpret_cast<uint8_t*>(&msglen);
|
||||
size_t mlread = 0;
|
||||
|
||||
if (readToMagic(msecs, isTimeOut, stats) == false) //indicates a timeout or EOF
|
||||
bool myIsTimeOut = false;
|
||||
if (readToMagic(msecs, &myIsTimeOut, stats) == false) //indicates a timeout or EOF
|
||||
{
|
||||
logIoError("InetStreamSocket::read: timeout during readToMagic", 0);
|
||||
return SBS(new ByteStream(0));
|
||||
if (!myIsTimeOut)
|
||||
logIoError("InetStreamSocket::read: EOF during readToMagic", 0);
|
||||
if (isTimeOut)
|
||||
{
|
||||
*isTimeOut = myIsTimeOut;
|
||||
}
|
||||
return SBS(new ByteStream(0));
|
||||
}
|
||||
|
||||
//FIXME: This seems like a lot of work to read 4 bytes...
|
||||
|
Reference in New Issue
Block a user