summaryrefslogtreecommitdiffstats
path: root/common/entitystorage.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-07 16:26:52 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 10:40:01 +0200
commit615fc9df81555ce5a2b16747640beba43e109ef4 (patch)
treee22c130d87adcb43f8769c4d4ca254f60b7b6ba1 /common/entitystorage.cpp
parentf689ad1021a7805f6f8b6a81f534b4cb9ca91f51 (diff)
downloadsink-615fc9df81555ce5a2b16747640beba43e109ef4.tar.gz
sink-615fc9df81555ce5a2b16747640beba43e109ef4.zip
Always get the latest revision directly from storage
We can just as well read the latest available revision from storage.
Diffstat (limited to 'common/entitystorage.cpp')
-rw-r--r--common/entitystorage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/entitystorage.cpp b/common/entitystorage.cpp
index 60d58ad..c60135e 100644
--- a/common/entitystorage.cpp
+++ b/common/entitystorage.cpp
@@ -121,8 +121,9 @@ ResultSet EntityStorageBase::loadInitialResultSet(const Akonadi2::Query &query,
121 return resultSet; 121 return resultSet;
122} 122}
123 123
124ResultSet EntityStorageBase::getResultSet(const Akonadi2::Query &query, Akonadi2::Storage::Transaction &transaction, qint64 baseRevision, qint64 topRevision) 124ResultSet EntityStorageBase::getResultSet(const Akonadi2::Query &query, Akonadi2::Storage::Transaction &transaction, qint64 baseRevision)
125{ 125{
126 const qint64 topRevision = Akonadi2::Storage::maxRevision(transaction);
126 QSet<QByteArray> remainingFilters = query.propertyFilter.keys().toSet(); 127 QSet<QByteArray> remainingFilters = query.propertyFilter.keys().toSet();
127 ResultSet resultSet; 128 ResultSet resultSet;
128 const bool initialQuery = (baseRevision == 0); 129 const bool initialQuery = (baseRevision == 0);