1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-15 12:09:09 +03:00

First cut of synchronizer is done, won't build yet.

This commit is contained in:
Patrick LeBlanc
2019-03-15 14:08:19 -05:00
parent 06d7862e03
commit 931cb9fb54
12 changed files with 295 additions and 50 deletions

View File

@@ -16,6 +16,7 @@
namespace storagemanager
{
/* TODO: Need to think about how errors are handled / propagated */
class Synchronizer : public boost::noncopyable
{
public:
@@ -30,6 +31,11 @@ class Synchronizer : public boost::noncopyable
private:
Synchronizer();
void process(const std::string &key);
void synchronize(const std::string &key, bool isFlush);
void synchronizeDelete(const std::string &key);
void synchronizeWithJournal(const std::string &key, bool isFlush);
struct FlushListener
{
FlushListener(boost::mutex *m, boost::condvar *c);