diff options
-rw-r--r-- | common/domain/event.cpp | 1 | ||||
-rw-r--r-- | common/queryrunner.cpp | 5 | ||||
-rw-r--r-- | common/resourceaccess.cpp | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index 87e13bc..42c13e2 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -47,6 +47,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, | |||
47 | }); | 47 | }); |
48 | appliedFilters << "uid"; | 48 | appliedFilters << "uid"; |
49 | } | 49 | } |
50 | Trace() << "Index lookup found " << keys.size() << " keys."; | ||
50 | return ResultSet(keys); | 51 | return ResultSet(keys); |
51 | } | 52 | } |
52 | 53 | ||
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> | |||
114 | void QueryRunner<DomainType>::replaySet(ResultSet &resultSet, Akonadi2::ResultProviderInterface<typename DomainType::Ptr> &resultProvider) | 114 | void 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 | ||
136 | template<class DomainType> | 139 | template<class DomainType> |
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 1b46b82..be25533 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -282,6 +282,7 @@ KAsync::Job<void> ResourceAccess::sendCommand(int commandId, flatbuffers::FlatB | |||
282 | 282 | ||
283 | KAsync::Job<void> ResourceAccess::synchronizeResource(bool sourceSync, bool localSync) | 283 | KAsync::Job<void> ResourceAccess::synchronizeResource(bool sourceSync, bool localSync) |
284 | { | 284 | { |
285 | Trace() << "Sending synchronize command: " << sourceSync << localSync; | ||
285 | flatbuffers::FlatBufferBuilder fbb; | 286 | flatbuffers::FlatBufferBuilder fbb; |
286 | auto command = Akonadi2::CreateSynchronize(fbb, sourceSync, localSync); | 287 | auto command = Akonadi2::CreateSynchronize(fbb, sourceSync, localSync); |
287 | Akonadi2::FinishSynchronizeBuffer(fbb, command); | 288 | Akonadi2::FinishSynchronizeBuffer(fbb, command); |