When writing to the view_build_status we have common logic related to upgrade and deciding whether to write to sys_dist ks or group0. Move this common logic to a generic function used by all functions writing to the table.
When writing to the view_build_status we have common logic related to upgrade and deciding whether to write to sys_dist ks or group0. Move this common logic to a generic function used by all functions writing to the table.