1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3563: fix compiler warnings / type errors.

A previous commit made posix::read changed return value
from bool to int. However some callers still expected
bool and compared a bool<0 which is always false.
This commit is contained in:
benthompson15
2019-10-31 14:53:27 -05:00
parent 6b916675d5
commit 3a730a4222
6 changed files with 17 additions and 18 deletions

View File

@ -48,7 +48,7 @@ StatTask::~StatTask()
bool StatTask::run()
{
SMLogging* logger = SMLogging::get();
bool success;
int success;
uint8_t buf[1024] = {0};
if (getLength() > 1023) {
@ -84,8 +84,7 @@ bool StatTask::run()
payloadLen = 4;
*((int32_t *) resp->payload) = errno;
}
success = write(*resp, payloadLen);
return success;
return write(*resp, payloadLen);
}
}