[PULL 16/39] migration: Merge flush_compressed_data() and compress_flush_data()