From 0dcc8e2985acbff52c497648e4fbb54e47bf3b51 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 19 Oct 2016 16:48:16 +0200 Subject: Make sure the storage exists from the very beginning of the first start. Changereplay and synchronizer rely on it. --- common/pipeline.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/pipeline.cpp') 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: Pipeline::Pipeline(const ResourceContext &context) : QObject(nullptr), d(new Private(context)) { + //Create main store immediately on first start + d->entityStore.startTransaction(DataStore::ReadWrite); + d->entityStore.commitTransaction(); } Pipeline::~Pipeline() -- cgit v1.2.3