You've already forked mariadb-columnstore-engine
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user