summaryrefslogtreecommitdiffstats
path: root/common/queryrunner.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-30 10:32:14 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-30 10:32:14 +0100
commitbf839f1a38518fd9302f4742ddeac16e891ac408 (patch)
treeca1a81d2e61cc45813f6bb41eb5f8d51cb66c109 /common/queryrunner.cpp
parent0413c13c6a9d2e3f5f5dc018f635f3043f09514b (diff)
downloadsink-bf839f1a38518fd9302f4742ddeac16e891ac408.tar.gz
sink-bf839f1a38518fd9302f4742ddeac16e891ac408.zip
Debug output
Diffstat (limited to 'common/queryrunner.cpp')
-rw-r--r--common/queryrunner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp
index 3f62f6a..bb1127c 100644
--- a/common/queryrunner.cpp
+++ b/common/queryrunner.cpp
@@ -114,7 +114,9 @@ template<class DomainType>
114void QueryRunner<DomainType>::replaySet(ResultSet &resultSet, Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &resultProvider) 114void QueryRunner<DomainType>::replaySet(ResultSet &resultSet, Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &resultProvider)
115{ 115{
116 // Trace() << "Replay set"; 116 // Trace() << "Replay set";
117 while (resultSet.next([&resultProvider](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool { 117 int counter = 0;
118 while (resultSet.next([&resultProvider, &counter](const Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr &value, Akonadi2::Operation operation) -> bool {
119 counter++;
118 switch (operation) { 120 switch (operation) {
119 case Akonadi2::Operation_Creation: 121 case Akonadi2::Operation_Creation:
120 // Trace() << "Got creation"; 122 // Trace() << "Got creation";
@@ -131,6 +133,7 @@ void QueryRunner<DomainType>::replaySet(ResultSet &resultSet, Akonadi2::ResultPr
131 } 133 }
132 return true; 134 return true;
133 })){}; 135 })){};
136 Trace() << "Replayed " << counter << " results";
134} 137}
135 138
136template<class DomainType> 139template<class DomainType>