From 768c1077b0d226d832f34904e929c2462eca158f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 16 Feb 2017 10:29:27 +0100 Subject: Remember whether a blob property is external or not. ...we used to accidentally move external blobs after the property was lost when storing the modificatoin in the queue. --- common/storage/entitystore.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common/storage') diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 51e5da7..9156dd4 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -162,6 +162,7 @@ void EntityStore::copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qi SinkWarningCtx(d->logCtx) << "Failed to move the file from: " << oldPath << " to " << filePath << ". " << origFile.errorString(); } origFile.close(); + SinkTraceCtx(d->logCtx) << "Moved blob property: " << property << " from " << oldPath << "to" << filePath; entity.setProperty(property, QVariant::fromValue(ApplicationDomain::BLOB{filePath})); } } -- cgit v1.2.3