cql3: maps: remove unnecessary use of with_linearized

We can validate directly from fragmented buffers now.
This commit is contained in:
Michał Chojnowski
2020-11-27 13:23:59 +01:00
parent 3f3a10c588
commit 72186bee69

View File

@@ -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()));