From f689ad1021a7805f6f8b6a81f534b4cb9ca91f51 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 6 Oct 2015 16:19:51 +0200 Subject: Change replay So far only includes modifications and additions, removals are not yet stored as separate revisions. --- common/storage_common.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'common/storage_common.cpp') diff --git a/common/storage_common.cpp b/common/storage_common.cpp index dc02aec..512a13f 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp @@ -66,10 +66,7 @@ qint64 Storage::maxRevision(const Akonadi2::Storage::Transaction &transaction) r = revision.toLongLong(); return false; }, [](const Error &error){ - if (error.code != ErrorCodes::NotFound) { - //FIXME - // defaultErrorHandler()(error); - } + std::cout << "Coultn'd find uid for revision "; }); return r; } @@ -80,11 +77,8 @@ QByteArray Storage::getUidFromRevision(const Akonadi2::Storage::Transaction &tra transaction.openDatabase("revisions").scan(QByteArray::number(revision), [&](const QByteArray &, const QByteArray &value) -> bool { uid = value; return false; - }, [](const Error &error){ - if (error.code != ErrorCodes::NotFound) { - //FIXME - // defaultErrorHandler()(error); - } + }, [revision](const Error &error){ + std::cout << "Coultn'd find uid for revision " << revision; }); return uid; } @@ -95,11 +89,8 @@ QByteArray Storage::getTypeFromRevision(const Akonadi2::Storage::Transaction &tr transaction.openDatabase("revisionType").scan(QByteArray::number(revision), [&](const QByteArray &, const QByteArray &value) -> bool { type = value; return false; - }, [](const Error &error){ - if (error.code != ErrorCodes::NotFound) { - //FIXME - // defaultErrorHandler()(error); - } + }, [revision](const Error &error){ + std::cout << "Coultn'd find type for revision " << revision; }); return type; } -- cgit v1.2.3