types: serialize_for_cql(): use throwing_assert() instead of SCYLLA_ASSERT()

Good practice in general. Also prepares the ground for calling
serialize_for_cql() from serialize_for_cql_with_timestamps(). The latter
already switched to throwing_assert(), avoid regressing to a crash.
This commit is contained in:
Botond Dénes
2026-05-12 15:05:18 +03:00
parent 73564acfa6
commit 4f442d13bd

View File

@@ -3700,7 +3700,7 @@ static bytes_ostream serialize_for_cql_aux(const user_type_impl& type, collectio
}
bytes_ostream serialize_for_cql(const abstract_type& type, collection_mutation_view v) {
SCYLLA_ASSERT(type.is_multi_cell());
throwing_assert(type.is_multi_cell());
return v.with_deserialized(type, [&] (collection_mutation_view_description mv) {
return visit(type, make_visitor(