diff --git a/db/view/view.cc b/db/view/view.cc index 74521934cc..a994bb0c46 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -1090,7 +1090,8 @@ void view_updates::generate_update( if (same_row) { update_entry(base_key, update, *existing, now); } else { - replace_entry(base_key, update, *existing, now); + delete_old_entry(base_key, *existing, update, now); + create_entry(base_key, update, now); } } else { delete_old_entry(base_key, *existing, update, now); diff --git a/db/view/view.hh b/db/view/view.hh index 1eb1321a21..09b08fd95a 100644 --- a/db/view/view.hh +++ b/db/view/view.hh @@ -198,10 +198,6 @@ private: void delete_old_entry(const partition_key& base_key, const clustering_row& existing, const clustering_row& update, gc_clock::time_point now); void do_delete_old_entry(const partition_key& base_key, const clustering_row& existing, const clustering_row& update, gc_clock::time_point now); void update_entry(const partition_key& base_key, const clustering_row& update, const clustering_row& existing, gc_clock::time_point now); - void replace_entry(const partition_key& base_key, const clustering_row& update, const clustering_row& existing, gc_clock::time_point now) { - delete_old_entry(base_key, existing, update, now); - create_entry(base_key, update, now); - } void update_entry_for_computed_column(const partition_key& base_key, const clustering_row& update, const std::optional& existing, gc_clock::time_point now); };