diff options
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 4 |
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 | |||
425 | void Storage::removeFromDisk() const | 425 | void 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); |