diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-01 11:10:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-01 11:10:37 +0100 |
commit | 44edbee0f0b2fcf13e2ee388a90a8dd1f84a329e (patch) | |
tree | 71d265b2bce5a15981976e334ed182fa6d37c45f /common/resourceaccess.cpp | |
parent | 377c86144221ffc5b49bdaa9b8dcc3507fe4a50f (diff) | |
download | sink-44edbee0f0b2fcf13e2ee388a90a8dd1f84a329e.tar.gz sink-44edbee0f0b2fcf13e2ee388a90a8dd1f84a329e.zip |
Resolve remoteIds during sync
Remote id's need to be resolved while syncing any references.
This is done by the synchronizer by consulting the rid to entity id
mapping. If the referenced entity doesn't exist yet we create a local
id anyways, that we then need to pick up once the actual entity arrives.
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index be25533..8988032 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -296,7 +296,7 @@ KAsync::Job<void> ResourceAccess::sendCreateCommand(const QByteArray &resourceBu | |||
296 | //This is the resource buffer type and not the domain type | 296 | //This is the resource buffer type and not the domain type |
297 | auto type = fbb.CreateString(resourceBufferType.constData()); | 297 | auto type = fbb.CreateString(resourceBufferType.constData()); |
298 | auto delta = Akonadi2::EntityBuffer::appendAsVector(fbb, buffer.constData(), buffer.size()); | 298 | auto delta = Akonadi2::EntityBuffer::appendAsVector(fbb, buffer.constData(), buffer.size()); |
299 | auto location = Akonadi2::Commands::CreateCreateEntity(fbb, type, delta); | 299 | auto location = Akonadi2::Commands::CreateCreateEntity(fbb, 0, type, delta); |
300 | Akonadi2::Commands::FinishCreateEntityBuffer(fbb, location); | 300 | Akonadi2::Commands::FinishCreateEntityBuffer(fbb, location); |
301 | open(); | 301 | open(); |
302 | return sendCommand(Akonadi2::Commands::CreateEntityCommand, fbb); | 302 | return sendCommand(Akonadi2::Commands::CreateEntityCommand, fbb); |