From 72186bee69968385c8a8926c9753fccf545663ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chojnowski?= Date: Fri, 27 Nov 2020 13:23:59 +0100 Subject: [PATCH] cql3: maps: remove unnecessary use of with_linearized We can validate directly from fragmented buffers now. --- cql3/maps.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cql3/maps.cc b/cql3/maps.cc index bcbe332080..29127cb349 100644 --- a/cql3/maps.cc +++ b/cql3/maps.cc @@ -261,9 +261,7 @@ maps::marker::bind(const query_options& options) { return constants::UNSET_VALUE; } try { - with_linearized(*val, [&] (bytes_view value) { - _receiver->type->validate(value, options.get_cql_serialization_format()); - }); + _receiver->type->validate(*val, options.get_cql_serialization_format()); } catch (marshal_exception& e) { throw exceptions::invalid_request_exception( format("Exception while binding column {:s}: {:s}", _receiver->name->to_cql_string(), e.what()));