elasticsearch/elasticsearch — pull request #7920 by rjernst (2014-09-29 20:25:39+00:00)
Title: Fix optimize behavior with 'force' and 'flush' flags.

This does the following:
* Make 'force' flag only build a merge if the delegate MP returned no merges
* Add async handling for 'flush' when 'waitForMerges' is false
* Remove flush at the beginning of optimize. This is something the user can
do if they wish, before calling optimize.

closes #7886
closes #7904