diff options
Diffstat (limited to 'common/index.cpp')
-rw-r--r-- | common/index.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/index.cpp b/common/index.cpp index beed45c..c864e77 100644 --- a/common/index.cpp +++ b/common/index.cpp | |||
@@ -4,15 +4,15 @@ | |||
4 | 4 | ||
5 | SINK_DEBUG_AREA("index") | 5 | SINK_DEBUG_AREA("index") |
6 | 6 | ||
7 | Index::Index(const QString &storageRoot, const QString &name, Sink::Storage::AccessMode mode) | 7 | Index::Index(const QString &storageRoot, const QString &name, Sink::Storage::DataStore::AccessMode mode) |
8 | : mTransaction(Sink::Storage(storageRoot, name, mode).createTransaction(mode)), | 8 | : mTransaction(Sink::Storage::DataStore(storageRoot, name, mode).createTransaction(mode)), |
9 | mDb(mTransaction.openDatabase(name.toLatin1(), std::function<void(const Sink::Storage::Error &)>(), true)), | 9 | mDb(mTransaction.openDatabase(name.toLatin1(), std::function<void(const Sink::Storage::DataStore::Error &)>(), true)), |
10 | mName(name) | 10 | mName(name) |
11 | { | 11 | { |
12 | } | 12 | } |
13 | 13 | ||
14 | Index::Index(const QByteArray &name, Sink::Storage::Transaction &transaction) | 14 | Index::Index(const QByteArray &name, Sink::Storage::DataStore::Transaction &transaction) |
15 | : mDb(transaction.openDatabase(name, std::function<void(const Sink::Storage::Error &)>(), true)), mName(name) | 15 | : mDb(transaction.openDatabase(name, std::function<void(const Sink::Storage::DataStore::Error &)>(), true)), mName(name) |
16 | { | 16 | { |
17 | } | 17 | } |
18 | 18 | ||
@@ -33,7 +33,7 @@ void Index::lookup(const QByteArray &key, const std::function<void(const QByteAr | |||
33 | resultHandler(value); | 33 | resultHandler(value); |
34 | return true; | 34 | return true; |
35 | }, | 35 | }, |
36 | [this, errorHandler](const Sink::Storage::Error &error) { | 36 | [this, errorHandler](const Sink::Storage::DataStore::Error &error) { |
37 | SinkWarning() << "Error while retrieving value" << error.message; | 37 | SinkWarning() << "Error while retrieving value" << error.message; |
38 | errorHandler(Error(error.store, error.code, error.message)); | 38 | errorHandler(Error(error.store, error.code, error.message)); |
39 | }, | 39 | }, |