diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 11:54:19 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 11:54:19 +0200 |
commit | 80c2ac8b750d0b6460cdeb0d114f5cd77fbca725 (patch) | |
tree | b074bd973746571d032b048b64ce20249497b1e1 | |
parent | d6a01b3f82d626856001356c0875aa738a0346ac (diff) | |
download | sink-80c2ac8b750d0b6460cdeb0d114f5cd77fbca725.tar.gz sink-80c2ac8b750d0b6460cdeb0d114f5cd77fbca725.zip |
Only call fetch once on the aggregate fetcher.
Otherwise we end up executing the initial query multiple times.
-rw-r--r-- | common/store.cpp | 2 |
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 | ||