summaryrefslogtreecommitdiffstats
path: root/common/datastorequery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/datastorequery.cpp')
-rw-r--r--common/datastorequery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp
index 2a2f3f5..8bed015 100644
--- a/common/datastorequery.cpp
+++ b/common/datastorequery.cpp
@@ -224,6 +224,10 @@ public:
224 bool foundValue = false; 224 bool foundValue = false;
225 while(!foundValue && mSource->next([this, callback, &foundValue](const ResultSet::Result &result) { 225 while(!foundValue && mSource->next([this, callback, &foundValue](const ResultSet::Result &result) {
226 auto reductionValue = result.entity.getProperty(mReductionProperty); 226 auto reductionValue = result.entity.getProperty(mReductionProperty);
227 if (result.operation == Sink::Operation_Removal) {
228 callback(result);
229 return false;
230 }
227 if (!mReducedValues.contains(getByteArray(reductionValue))) { 231 if (!mReducedValues.contains(getByteArray(reductionValue))) {
228 //Only reduce every value once. 232 //Only reduce every value once.
229 mReducedValues.insert(getByteArray(reductionValue)); 233 mReducedValues.insert(getByteArray(reductionValue));