mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 20:46:56 +00:00
partition_entry: Introduce partition_tombstone() getter
This commit is contained in:
@@ -123,6 +123,12 @@ mutation_partition partition_snapshot::squashed() const {
|
||||
[this] (mutation_partition& a, const mutation_partition& b) { a.apply(*_schema, b, *_schema); });
|
||||
}
|
||||
|
||||
tombstone partition_entry::partition_tombstone() const {
|
||||
return ::squashed<tombstone>(_version,
|
||||
[] (const mutation_partition& mp) { return mp.partition_tombstone(); },
|
||||
[] (tombstone& a, tombstone b) { a.apply(b); });
|
||||
}
|
||||
|
||||
partition_snapshot::~partition_snapshot() {
|
||||
if (_version && _version.is_unique_owner()) {
|
||||
auto v = &*_version;
|
||||
|
||||
@@ -343,6 +343,7 @@ public:
|
||||
|
||||
mutation_partition squashed(schema_ptr from, schema_ptr to);
|
||||
mutation_partition squashed(const schema&);
|
||||
tombstone partition_tombstone() const;
|
||||
|
||||
// needs to be called with reclaiming disabled
|
||||
void upgrade(schema_ptr from, schema_ptr to);
|
||||
|
||||
Reference in New Issue
Block a user