1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +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

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