mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
streamed_mutation: Introduce make_empty_streamed_mutation()
This commit is contained in:
@@ -154,6 +154,10 @@ std::ostream& operator<<(std::ostream& os, const mutation_fragment& mf) {
|
||||
return os;
|
||||
}
|
||||
|
||||
streamed_mutation make_empty_streamed_mutation(schema_ptr s, dht::decorated_key key, streamed_mutation::forwarding fwd) {
|
||||
return streamed_mutation_from_mutation(mutation(std::move(key), std::move(s)), fwd);
|
||||
}
|
||||
|
||||
streamed_mutation streamed_mutation_from_mutation(mutation m, streamed_mutation::forwarding fwd)
|
||||
{
|
||||
class reader final : public streamed_mutation::impl {
|
||||
|
||||
@@ -531,6 +531,8 @@ streamed_mutation streamed_mutation_returning(schema_ptr, dht::decorated_key, st
|
||||
streamed_mutation merge_mutations(std::vector<streamed_mutation>);
|
||||
streamed_mutation reverse_streamed_mutation(streamed_mutation);
|
||||
|
||||
streamed_mutation make_empty_streamed_mutation(schema_ptr, dht::decorated_key, streamed_mutation::forwarding fwd = streamed_mutation::forwarding::no);
|
||||
|
||||
// range_tombstone_stream is a helper object that simplifies producing a stream
|
||||
// of range tombstones and merging it with a stream of clustering rows.
|
||||
// Tombstones are added using apply() and retrieved using get_next().
|
||||
|
||||
Reference in New Issue
Block a user