mutation/collection_mutation: don't copy the serialized collection
serialize_collection_mutation() copies the serialized collection into
the returned collection_mutation object. Change to move to avoid the
copy.
Fixes: SCYLLADB-1041
Closes scylladb/scylladb#29010
(cherry picked from commit 15cfa5beeb)
Closes scylladb/scylladb#29024
This commit is contained in:
@@ -261,7 +261,7 @@ static collection_mutation serialize_collection_mutation(
|
||||
|
||||
writev(v.serialize());
|
||||
}
|
||||
return collection_mutation(type, ret);
|
||||
return collection_mutation(type, std::move(ret));
|
||||
}
|
||||
|
||||
collection_mutation collection_mutation_description::serialize(const abstract_type& type) const {
|
||||
|
||||
Reference in New Issue
Block a user