1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Checkpointing some stuff. No way it'll build yet.

This commit is contained in:
Patrick LeBlanc
2019-01-18 10:19:14 -06:00
parent db10662629
commit d53471fc75
13 changed files with 462 additions and 1 deletions

View File

@ -0,0 +1,42 @@
# copy some licensing stuff here
#ifndef SMDATAFILE_H_
#define SMDATAFILE_H_
#include <string>
#include <boost/utility.hpp>
#include "IDBDataFile.h"
#include "SMComm.h"
namespace idbdatafile
{
class SMDataFile : public IDBDataFile
{
public:
virtual ~SMDataFile();
ssize_t pread(void* ptr, off64_t offset, size_t count);
ssize_t read(void* ptr, size_t count);
ssize_t write(const void* ptr, size_t count);
int seek(off64_t offset, int whence);
int truncate(off64_t length);
off64_t size();
off64_t tell();
int flush();
time_t mtime();
private:
SMDataFile();
SMDataFile(const char *fname, int openmode, const struct stat &);
off64_t position;
int openmode;
SMComm *comm;
friend class SMFileFactory;
};
}
#endif