diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-06-08 10:47:57 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-06-08 10:47:57 +0200 |
commit | 63919d3040295415306267df7b66e7a5e2c9395f (patch) | |
tree | cb5e416487243ca68e6ad3ecff40a00527017ec6 /common/domain/event.cpp | |
parent | 810543a625074fb8685c7c59e36123c055e8fda6 (diff) | |
download | sink-63919d3040295415306267df7b66e7a5e2c9395f.tar.gz sink-63919d3040295415306267df7b66e7a5e2c9395f.zip |
Differentiate between resource name and instance identifier
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r-- | common/domain/event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index c435c6b..08ce698 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -36,7 +36,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, | |||
36 | { | 36 | { |
37 | QVector<QByteArray> keys; | 37 | QVector<QByteArray> keys; |
38 | if (query.propertyFilter.contains("uid")) { | 38 | if (query.propertyFilter.contains("uid")) { |
39 | Index uidIndex(Akonadi2::Store::storageLocation(), resourceInstanceIdentifier + "index.uid", Akonadi2::Storage::ReadOnly); | 39 | Index uidIndex(Akonadi2::Store::storageLocation(), resourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly); |
40 | uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { | 40 | uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { |
41 | keys << value; | 41 | keys << value; |
42 | }, | 42 | }, |
@@ -50,7 +50,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, | |||
50 | 50 | ||
51 | void TypeImplementation<Event>::index(const Event &type) | 51 | void TypeImplementation<Event>::index(const Event &type) |
52 | { | 52 | { |
53 | Index uidIndex(Akonadi2::Store::storageLocation(), type.resourceInstanceIdentifier() + "index.uid", Akonadi2::Storage::ReadWrite); | 53 | Index uidIndex(Akonadi2::Store::storageLocation(), type.resourceInstanceIdentifier() + ".index.uid", Akonadi2::Storage::ReadWrite); |
54 | const auto uid = type.getProperty("uid"); | 54 | const auto uid = type.getProperty("uid"); |
55 | if (uid.isValid()) { | 55 | if (uid.isValid()) { |
56 | uidIndex.add(uid.toByteArray(), type.identifier()); | 56 | uidIndex.add(uid.toByteArray(), type.identifier()); |