From 4f442d13bd9f2cd30cbc67f4492d97930e35595e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Tue, 12 May 2026 15:05:18 +0300 Subject: [PATCH] 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. --- types/types.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/types.cc b/types/types.cc index afc59dc320..02779a0ff2 100644 --- a/types/types.cc +++ b/types/types.cc @@ -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(