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

Working on defining message structures and unit tests for

the PosixTask subclasses.
This commit is contained in:
Patrick LeBlanc
2019-01-31 14:43:32 -06:00
parent 0ef3caca9e
commit 13af644425
14 changed files with 335 additions and 99 deletions

View File

@@ -39,7 +39,7 @@ void UnlinkTask::run()
success = read(buf, getLength());
check_error("UnlinkTask read");
cmd_overlay *cmd = (cmd_overlay *) buf;
unlink_cmd *cmd = (unlink_cmd *) buf;
int err = ioc->unlink(cmd->filename);
if (err)
@@ -48,11 +48,11 @@ void UnlinkTask::run()
return;
}
uint32_t *buf32 = (uint32_t *) buf;
buf32[0] = SM_MSG_START;
buf32[1] = 4;
buf32[2] = 0;
write(buf, 12);
sm_msg_resp *resp = (sm_msg_resp *) buf;
resp->type = SM_MSG_START;
resp->payloadLen = 4;
resp->returnCode = 0;
write(buf, sizeof(*resp));
}
}