diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-19 16:48:16 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-21 09:18:50 +0200 |
commit | 0dcc8e2985acbff52c497648e4fbb54e47bf3b51 (patch) | |
tree | c5d9a84f6daa83a823d17e1252f6e1b5f7f6caac /common/pipeline.cpp | |
parent | 9a5f0a14714ec9a6a71a003b72e5ed3520dfa125 (diff) | |
download | sink-0dcc8e2985acbff52c497648e4fbb54e47bf3b51.tar.gz sink-0dcc8e2985acbff52c497648e4fbb54e47bf3b51.zip |
Make sure the storage exists from the very beginning of the first start.
Changereplay and synchronizer rely on it.
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r-- | common/pipeline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index bb40a85..9a4f431 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -62,6 +62,9 @@ public: | |||
62 | 62 | ||
63 | Pipeline::Pipeline(const ResourceContext &context) : QObject(nullptr), d(new Private(context)) | 63 | Pipeline::Pipeline(const ResourceContext &context) : QObject(nullptr), d(new Private(context)) |
64 | { | 64 | { |
65 | //Create main store immediately on first start | ||
66 | d->entityStore.startTransaction(DataStore::ReadWrite); | ||
67 | d->entityStore.commitTransaction(); | ||
65 | } | 68 | } |
66 | 69 | ||
67 | Pipeline::~Pipeline() | 70 | Pipeline::~Pipeline() |