summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 11:54:19 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 11:54:19 +0200
commit80c2ac8b750d0b6460cdeb0d114f5cd77fbca725 (patch)
treeb074bd973746571d032b048b64ce20249497b1e1 /common
parentd6a01b3f82d626856001356c0875aa738a0346ac (diff)
downloadsink-80c2ac8b750d0b6460cdeb0d114f5cd77fbca725.tar.gz
sink-80c2ac8b750d0b6460cdeb0d114f5cd77fbca725.zip
Only call fetch once on the aggregate fetcher.
Otherwise we end up executing the initial query multiple times.
Diffstat (limited to 'common')
-rw-r--r--common/store.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/store.cpp b/common/store.cpp
index f5a7774..a1b3c17 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -371,12 +371,12 @@ QList<DomainType> Store::read(const Sink::Query &q)
371 SinkWarning() << "Null emitter for resource " << resourceInstanceIdentifier; 371 SinkWarning() << "Null emitter for resource " << resourceInstanceIdentifier;
372 } 372 }
373 result.first.exec(); 373 result.first.exec();
374 aggregatingEmitter->fetch(typename DomainType::Ptr());
375 } else { 374 } else {
376 SinkTrace() << "Couldn't find a facade for " << resourceInstanceIdentifier; 375 SinkTrace() << "Couldn't find a facade for " << resourceInstanceIdentifier;
377 // Ignore the error and carry on 376 // Ignore the error and carry on
378 } 377 }
379 } 378 }
379 aggregatingEmitter->fetch(typename DomainType::Ptr());
380 return list; 380 return list;
381} 381}
382 382