diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:12:47 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:13:05 +0100 |
commit | cd206b3a720807301f1b1707698c4a405da89217 (patch) | |
tree | 084c8afc2e6cadb72c194a2acded26a1409151ee /common/storage/entitystore.cpp | |
parent | ede78a9840ea6c30244a2cb161cfd1cee63b8283 (diff) | |
download | sink-cd206b3a720807301f1b1707698c4a405da89217.tar.gz sink-cd206b3a720807301f1b1707698c4a405da89217.zip |
Debug output
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 1417861..7414f49 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -130,6 +130,8 @@ bool EntityStore::add(const QByteArray &type, const ApplicationDomain::Applicati | |||
130 | auto entity = *ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<ApplicationDomain::ApplicationDomainType>(entity_, entity_.availableProperties()); | 130 | auto entity = *ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<ApplicationDomain::ApplicationDomainType>(entity_, entity_.availableProperties()); |
131 | entity.setChangedProperties(entity.availableProperties().toSet()); | 131 | entity.setChangedProperties(entity.availableProperties().toSet()); |
132 | 132 | ||
133 | SinkTrace() << "New entity " << entity; | ||
134 | |||
133 | preprocess(entity); | 135 | preprocess(entity); |
134 | d->typeIndex(type).add(entity.identifier(), entity, d->transaction); | 136 | d->typeIndex(type).add(entity.identifier(), entity, d->transaction); |
135 | 137 | ||
@@ -205,7 +207,7 @@ bool EntityStore::modify(const QByteArray &type, const ApplicationDomain::Applic | |||
205 | } | 207 | } |
206 | 208 | ||
207 | newEntity.setChangedProperties(newEntity.availableProperties().toSet()); | 209 | newEntity.setChangedProperties(newEntity.availableProperties().toSet()); |
208 | SinkTrace() << "All properties: " << newEntity.availableProperties(); | 210 | SinkTrace() << "Modified entity " << newEntity; |
209 | 211 | ||
210 | flatbuffers::FlatBufferBuilder fbb; | 212 | flatbuffers::FlatBufferBuilder fbb; |
211 | d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize()); | 213 | d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize()); |
@@ -251,6 +253,8 @@ bool EntityStore::remove(const QByteArray &type, const QByteArray &uid, bool rep | |||
251 | preprocess(current); | 253 | preprocess(current); |
252 | d->typeIndex(type).remove(current.identifier(), current, d->transaction); | 254 | d->typeIndex(type).remove(current.identifier(), current, d->transaction); |
253 | 255 | ||
256 | SinkTrace() << "Removed entity " << current; | ||
257 | |||
254 | const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1; | 258 | const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1; |
255 | 259 | ||
256 | // Add metadata buffer | 260 | // Add metadata buffer |