Skip to content

Commit

Permalink
Fixed event result bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
basdenooijer committed Feb 27, 2013
1 parent 9bc980c commit d733309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function flush($overwrite = null, $commitWithin = null)
$result = $this->client->update($this->updateQuery);
$this->clear();

$event = new PostFlushEvent($this->buffer);
$event = new PostFlushEvent($result);
$this->client->getEventDispatcher()->dispatch(Events::POST_FLUSH, $event);

return $result;
Expand All @@ -238,7 +238,7 @@ public function commit($overwrite = null, $softCommit = null, $waitSearcher = nu
$result = $this->client->update($this->updateQuery);
$this->clear();

$event = new PostCommitEvent($this->buffer);
$event = new PostCommitEvent($result);
$this->client->getEventDispatcher()->dispatch(Events::POST_COMMIT, $event);

return $result;
Expand Down

0 comments on commit d733309

Please sign in to comment.