summaryrefslogtreecommitdiffstats
path: root/common/index.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-06-19 10:29:20 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-06-19 11:15:19 +0200
commitb940489ed6afe413339a1c602d05f3b4f3133463 (patch)
tree84b79d47236d83d2e6ae1833105885a885e4ce99 /common/index.cpp
parent077e3cb30ace5f6ee20ee15e0d32d2bfb197fde0 (diff)
downloadsink-b940489ed6afe413339a1c602d05f3b4f3133463.tar.gz
sink-b940489ed6afe413339a1c602d05f3b4f3133463.zip
Asserts, debug messages and other cleanup
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 });