Return an accurate summary from buffer's flush() method
The earlier implementation would only return summary data from keys that
existed in the last _add
backend method run, rather than collating all
the results.
Migrated from D5018 (view on Phabricator)