summaryrefslogtreecommitdiffstats
path: root/common/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/index.cpp')
-rw-r--r--common/index.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/index.cpp b/common/index.cpp
index 94b2eea..13ca6ed 100644
--- a/common/index.cpp
+++ b/common/index.cpp
@@ -26,6 +26,7 @@ Index::Index(const QByteArray &name, Sink::Storage::DataStore::Transaction &tran
26 26
27void Index::add(const QByteArray &key, const QByteArray &value) 27void Index::add(const QByteArray &key, const QByteArray &value)
28{ 28{
29 Q_ASSERT(!key.isEmpty());
29 mDb.write(key, value, [&] (const Sink::Storage::DataStore::Error &error) { 30 mDb.write(key, value, [&] (const Sink::Storage::DataStore::Error &error) {
30 SinkWarningCtx(mLogCtx) << "Error while writing value" << error; 31 SinkWarningCtx(mLogCtx) << "Error while writing value" << error;
31 }); 32 });