Fix flushing of new records to avoid duplicate keys, fixes #1221
Fix flushing of new records to avoid duplicate keys, fixes #1221

composer/packagist,composer/packagist,composer/packagist,composer/packagist