mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-21 23:32:15 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user