You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-18 13:54:11 +03:00
Add MetadataFile / Replicator class and initial IOC-write logic.
This commit is contained in:
33
src/Replicator.h
Executable file
33
src/Replicator.h
Executable file
@@ -0,0 +1,33 @@
|
||||
#ifndef REPLICATOR_H_
|
||||
#define REPLICATOR_H_
|
||||
|
||||
//#include "ThreadPool.h"
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace storagemanager
|
||||
{
|
||||
|
||||
// 64-bit offset
|
||||
// 64-bit length
|
||||
// <length-bytes of data to write at specified offset>
|
||||
|
||||
class Replicator
|
||||
{
|
||||
public:
|
||||
static Replicator *get();
|
||||
virtual ~Replicator();
|
||||
|
||||
int addJournalEntry(const char *filename, const uint8_t *data, off_t offset, size_t length);
|
||||
int newObject(const char *filename, const uint8_t *data, size_t length);
|
||||
int remove(const char *key ,uint8_t flags);
|
||||
|
||||
|
||||
private:
|
||||
Replicator();
|
||||
//ThreadPool threadPool;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user