1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

First cut of IOC::truncate(). Got some of the unit test

written.  Fixed some bugs.  Commented out the old truncate test
for now; depends on IOC::write() to extend a file.
This commit is contained in:
Patrick LeBlanc
2019-04-01 16:23:35 -05:00
parent d0aeffca07
commit b4ebf7c3c0
7 changed files with 232 additions and 51 deletions

View File

@@ -3,6 +3,7 @@
//#include "ThreadPool.h"
#include "MetadataFile.h"
#include <boost/filesystem.hpp>
#include <sys/types.h>
#include <stdint.h>
@@ -28,9 +29,10 @@ class 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, Flags flags = NONE);
int remove(const char *filename, Flags flags = NONE);
int remove(const boost::filesystem::path &file, Flags flags = NONE);
int updateMetadata(const char *filename, const MetadataFile &meta);
int updateMetadata(const char *filename, MetadataFile &meta);
private:
Replicator();