mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
Deduplicate the fragment-consuming logic in view_update_builder::generate_updates() by extracting it into three private methods: consume_both_fragments(), consume_update_fragment(), and consume_existing_fragment(). The three inlined blocks for cmp < 0, cmp > 0, and cmp == 0 were identical to the trailing "update only" and "existing only" blocks. The only semantic change is in the trailing "existing only" path: the outer tombstone guard is replaced by per-branch tombstone checks inside consume_existing_fragment(), which is both sufficient and more precise for the static_row case (uses partition tombstone only, not range tombstone which is irrelevant for static rows).
14 KiB
14 KiB