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

EOD checkpoint. Finished first cut of the harder posix tasks.

This commit is contained in:
Patrick LeBlanc
2019-01-28 17:26:09 -06:00
parent 0d74c32d08
commit b38c92738c
13 changed files with 259 additions and 19 deletions

View File

@@ -18,17 +18,15 @@ void ReadTask::run()
{
// get the parameters
if (getLength() > 1024) {
handleError("ReadTask read", EFAULT);
return;
}
bool success;
uint8_t *buf = alloca(getLength());
int boff = 0;
success = read(&buf, getLength());
uint flen = *((uint *) &buf[0])
boff += 4;
string filename(&buf[boff], flen);
boff += flen;
size_t count = *((size_t *) &buf[boff]);
boff += sizeof(size_t);
off_t offset = *((off_t *) &buf[boff]);
cmd_overlay *cmd = (cmd_overlay *) buf;
// read from IOC, write to the socket
vector<uint8_t> outbuf;