diff options
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index b127ec5..46712b5 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -139,6 +139,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
139 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); | 139 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); |
140 | const auto found = mainDatabase.contains(sinkId); | 140 | const auto found = mainDatabase.contains(sinkId); |
141 | auto adaptorFactory = Sink::AdaptorFactoryRegistry::instance().getFactory(mResourceType, bufferType); | 141 | auto adaptorFactory = Sink::AdaptorFactoryRegistry::instance().getFactory(mResourceType, bufferType); |
142 | Q_ASSERT(adaptorFactory); | ||
142 | if (!found) { | 143 | if (!found) { |
143 | Trace() << "Found a new entity: " << remoteId; | 144 | Trace() << "Found a new entity: " << remoteId; |
144 | createEntity( | 145 | createEntity( |
@@ -178,7 +179,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
178 | Sink::Query query; | 179 | Sink::Query query; |
179 | query.propertyFilter = mergeCriteria; | 180 | query.propertyFilter = mergeCriteria; |
180 | bool merge = false; | 181 | bool merge = false; |
181 | Sink::EntityReader<DomainType> reader(mResourceInstanceIdentifier, mResourceType, transaction()); | 182 | Sink::EntityReader<DomainType> reader(mResourceType, mResourceInstanceIdentifier, transaction()); |
182 | reader.query(query, | 183 | reader.query(query, |
183 | [this, bufferType, remoteId, &merge](const DomainType &o) -> bool{ | 184 | [this, bufferType, remoteId, &merge](const DomainType &o) -> bool{ |
184 | merge = true; | 185 | merge = true; |