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

Integrated IOCoordinator with the posix tasks.

This commit is contained in:
Patrick LeBlanc
2019-01-30 10:24:37 -06:00
parent f10bcc0774
commit 9a7f793c7f
8 changed files with 102 additions and 27 deletions

View File

@@ -1,10 +1,13 @@
#include "UnlinkTask.h"
#include "IOCoordinator.h"
#include <errno.h>
#include "messageFormat.h"
using namespace std;
extern storagemanager::IOCoordinator *ioc;
namespace storagemanager
{
@@ -38,9 +41,13 @@ void UnlinkTask::run()
check_error("UnlinkTask read");
cmd_overlay *cmd = (cmd_overlay *) buf;
// IOC->unlink(cmd->filename);
int err = ioc->unlink(cmd->filename);
if (err)
{
handleError("UnlinkTask unlink", errno);
return;
}
// generic success msg
uint32_t *buf32 = (uint32_t *) buf;
buf32[0] = SM_MSG_START;
buf32[1] = 4;