summaryrefslogtreecommitdiffstats
path: root/dummyresource/facade.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-03 00:58:52 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-03 00:58:52 +0200
commitffdbd257bc4b13132b10f60d9ab70759e1f259bd (patch)
treec48aa85f717237d6a4d81ae0ef120a5f3407c89d /dummyresource/facade.cpp
parent4c8a2715887bfe8a986470666c9b648e4cec6eb0 (diff)
downloadsink-ffdbd257bc4b13132b10f60d9ab70759e1f259bd.tar.gz
sink-ffdbd257bc4b13132b10f60d9ab70759e1f259bd.zip
We have to copy all values anyways, so this transaction is no longer required.
Diffstat (limited to 'dummyresource/facade.cpp')
-rw-r--r--dummyresource/facade.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/dummyresource/facade.cpp b/dummyresource/facade.cpp
index 04bf5b3..949b4c4 100644
--- a/dummyresource/facade.cpp
+++ b/dummyresource/facade.cpp
@@ -212,9 +212,6 @@ Async::Job<void> DummyResourceFacade::load(const Akonadi2::Query &query, const s
212 }); 212 });
213 } 213 }
214 214
215 //We start a transaction explicitly that we'll leave open so the values can be read.
216 //The transaction will be closed automatically once the storage object is destroyed.
217 storage->startTransaction(Akonadi2::Storage::ReadOnly);
218 if (keys.isEmpty()) { 215 if (keys.isEmpty()) {
219 Log() << "Executing a full scan"; 216 Log() << "Executing a full scan";
220 readValue(storage, QByteArray(), resultCallback, preparedQuery); 217 readValue(storage, QByteArray(), resultCallback, preparedQuery);