diff options
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index ef3363a..b9b86aa 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -595,6 +595,9 @@ Storage::Transaction Storage::createTransaction(AccessMode type, const std::func | |||
595 | qint64 Storage::diskUsage() const | 595 | qint64 Storage::diskUsage() const |
596 | { | 596 | { |
597 | QFileInfo info(d->storageRoot + '/' + d->name + "/data.mdb"); | 597 | QFileInfo info(d->storageRoot + '/' + d->name + "/data.mdb"); |
598 | if (!info.exists()) { | ||
599 | qWarning() << "Tried to get filesize for non-existant file: " << info.path(); | ||
600 | } | ||
598 | return info.size(); | 601 | return info.size(); |
599 | } | 602 | } |
600 | 603 | ||