aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-12 14:45:37 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-12 14:45:37 (GMT)
commitdb0ab1e9d1bbaf7ac77fccb5ceac757e4024d75c (patch)
tree3de0d7b6d12313e36497ab92c196020373ec7304
parent4d83c90496deed2110b1d21e177de857ed6b5698 (diff)
Remove a wrong assert
-rw-r--r--src/server/storage/parthelper.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/server/storage/parthelper.cpp b/src/server/storage/parthelper.cpp
index 1825975..a51e378 100644
--- a/src/server/storage/parthelper.cpp
+++ b/src/server/storage/parthelper.cpp
@@ -78,8 +78,6 @@ bool PartHelper::insert(Part *part, qint64 *insertId)
return false;
}
- Q_ASSERT(!part->isValid());
-
const bool storeInFile = part->datasize() > DbConfig::configuredDatabase()->sizeThreshold();
//it is needed to insert first the metadata so a new id is generated for the part,
//and we need this id for the payload file name