diff: convert get_stat_data to struct object_id