1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-17 01:02:23 +03:00

Got it to build.

This commit is contained in:
Patrick LeBlanc
2019-01-29 13:14:48 -06:00
parent 2624dc048d
commit 9bad261489
23 changed files with 180 additions and 62 deletions

View File

@@ -1,5 +1,7 @@
#include "TruncateTask.h"
#include <errno.h>
#include "messageFormat.h"
using namespace std;
@@ -14,6 +16,13 @@ TruncateTask::~TruncateTask()
{
}
#define check_error(msg) \
if (!success) \
{ \
handleError(msg, errno); \
return; \
}
void TruncateTask::run()
{
bool success;
@@ -31,9 +40,11 @@ void TruncateTask::run()
// IOC->truncate(cmd->filename, cmd->newSize);
// generic success msg
uint32_t *buf32 = buf;
uint32_t *buf32 = (uint32_t *) buf;
buf32[0] = SM_MSG_START;
buf32[1] = 4;
buf32[2] = 0;
write(buf, 12);
}
}