1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-12 23:42:47 +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

@@ -45,7 +45,7 @@ UnlinkTask::~UnlinkTask()
bool UnlinkTask::run()
{
SMLogging* logger = SMLogging::get();
bool success;
int success;
uint8_t buf[1024] = {0};
if (getLength() > 1023) {
@@ -81,8 +81,7 @@ bool UnlinkTask::run()
sm_response *resp = (sm_response *) buf;
resp->returnCode = 0;
success = write(*resp, 0);
return success;
return write(*resp, 0);
}
}