diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 4de585d..a506cf8 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -62,7 +62,7 @@ void Storage::setMaxRevision(qint64 revision) | |||
62 | 62 | ||
63 | void Storage::setMaxRevision(Akonadi2::Storage::Transaction &transaction, qint64 revision) | 63 | void Storage::setMaxRevision(Akonadi2::Storage::Transaction &transaction, qint64 revision) |
64 | { | 64 | { |
65 | transaction.write("__internal_maxRevision", QByteArray::number(revision)); | 65 | transaction.openDatabase().write("__internal_maxRevision", QByteArray::number(revision)); |
66 | } | 66 | } |
67 | 67 | ||
68 | qint64 Storage::maxRevision() | 68 | qint64 Storage::maxRevision() |
@@ -74,7 +74,7 @@ qint64 Storage::maxRevision() | |||
74 | qint64 Storage::maxRevision(const Akonadi2::Storage::Transaction &transaction) | 74 | qint64 Storage::maxRevision(const Akonadi2::Storage::Transaction &transaction) |
75 | { | 75 | { |
76 | qint64 r = 0; | 76 | qint64 r = 0; |
77 | transaction.scan("__internal_maxRevision", [&](const QByteArray &, const QByteArray &revision) -> bool { | 77 | transaction.openDatabase().scan("__internal_maxRevision", [&](const QByteArray &, const QByteArray &revision) -> bool { |
78 | r = revision.toLongLong(); | 78 | r = revision.toLongLong(); |
79 | return false; | 79 | return false; |
80 | }, [](const Error &error){ | 80 | }, [](const Error &error){ |