diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-03 00:58:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-03 00:58:52 +0200 |
commit | ffdbd257bc4b13132b10f60d9ab70759e1f259bd (patch) | |
tree | c48aa85f717237d6a4d81ae0ef120a5f3407c89d /dummyresource/facade.cpp | |
parent | 4c8a2715887bfe8a986470666c9b648e4cec6eb0 (diff) | |
download | sink-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.cpp | 3 |
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); |