From 64d7d7bdd1edb2bcc305ca007784d0708cf7ef3c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 24 Nov 2016 09:57:34 +0100 Subject: Deal with not using the implicit internal transaction. --- common/pipeline.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/pipeline.cpp') diff --git a/common/pipeline.cpp b/common/pipeline.cpp index d3668bc..1eea631 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp @@ -287,7 +287,9 @@ KAsync::Job Pipeline::deletedEntity(void const *command, size_t size) void Pipeline::cleanupRevisions(qint64 revision) { - d->entityStore.cleanupRevisions(revision); + //We have to set revisionChanged, otherwise a call to commit might abort + //the transaction when not using the implicit internal transaction + d->revisionChanged = d->entityStore.cleanupRevisions(revision); } -- cgit v1.2.3