aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-06-22 10:42:24 +0200
committerDaniel Vrátil <[email protected]>2017-06-22 10:42:24 +0200
commit47be5db2eef296a3216694b1ed982917897689f7 (patch)
tree7cbd07e8813ef772bf5099cbd7bf3989baa15852
parentde7eea95ffa8b43ecb86c7746e8022ede6993a3b (diff)
CollectionStatistics: fix out-of-range index access
-rw-r--r--src/server/storage/collectionstatistics.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/storage/collectionstatistics.cpp b/src/server/storage/collectionstatistics.cpp
index 9bda090..b9ac980 100644
--- a/src/server/storage/collectionstatistics.cpp
+++ b/src/server/storage/collectionstatistics.cpp
@@ -96,8 +96,7 @@ CollectionStatistics::CollectionStatistics(bool prefetch)
auto query = qb.query();
while (query.next()) {
const auto colId = query.value(0).toLongLong();
- const auto isVirtual = query.value(1).toBool();
- if (!isVirtual && !mCache.contains(colId)) {
+ if (!mCache.contains(colId)) {
mCache.insert(colId, { 0, 0, 0 });
}
}