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