summaryrefslogtreecommitdiffstats
path: root/common/storage_lmdb.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-07 13:25:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-07 13:25:35 +0200
commit9c7fcfacbba250d8776e520c92b2c33e43bc87ef (patch)
treeade1f9a884e7a78b569f59a2abc618624dbce227 /common/storage_lmdb.cpp
parentc00d5fb305abff370f869dec0e9404f8a4a5646b (diff)
downloadsink-9c7fcfacbba250d8776e520c92b2c33e43bc87ef.tar.gz
sink-9c7fcfacbba250d8776e520c92b2c33e43bc87ef.zip
Less noise
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r--common/storage_lmdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index 4fcb11f..7bbf8b5 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -425,11 +425,11 @@ qint64 Storage::diskUsage() const
425void Storage::removeFromDisk() const 425void Storage::removeFromDisk() const
426{ 426{
427 const QString fullPath(d->storageRoot + '/' + d->name); 427 const QString fullPath(d->storageRoot + '/' + d->name);
428 qDebug() << "removing " << fullPath;
429 QMutexLocker locker(&d->sMutex); 428 QMutexLocker locker(&d->sMutex);
430 QDir dir(fullPath); 429 QDir dir(fullPath);
431 if (!dir.removeRecursively()) { 430 if (!dir.removeRecursively()) {
432 qWarning() << "Failed to remove directory" << d->storageRoot << d->name; 431 Error error(d->name.toLatin1(), ErrorCodes::GenericError, QString("Failed to remove directory %1 %2").arg(d->storageRoot).arg(d->name).toLatin1());
432 defaultErrorHandler()(error);
433 } 433 }
434 auto env = d->sEnvironments.take(fullPath); 434 auto env = d->sEnvironments.take(fullPath);
435 mdb_env_close(env); 435 mdb_env_close(env);