diff options
Diffstat (limited to 'common/index.cpp')
-rw-r--r-- | common/index.cpp | 1 |
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 | ||
27 | void Index::add(const QByteArray &key, const QByteArray &value) | 27 | void 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 | }); |