elasticsearch/elasticsearch — pull request #5955 by martijnvg (2014-04-28 02:13:38+00:00)
Title: Use collectExistingBucket() if a bucket already exists

In the case if a bucket already exists the resize check in collectBucket() is redundant, so instead aggregations should use collectExistingBucket() instead which doesn't check for resize or grows the docCount array.