mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 00:50:35 +00:00
sstables: deletion_time structure
Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
This commit is contained in:
committed by
Avi Kivity
parent
be1e8362bb
commit
4e73bf8b11
@@ -303,6 +303,10 @@ future<> parse(file_input_stream& in, index_entry& ie) {
|
||||
return parse(in, ie.key, ie.position, ie.promoted_index);
|
||||
}
|
||||
|
||||
future<> parse(file_input_stream& in, deletion_time& d) {
|
||||
return parse(in, d.local_deletion_time, d.marked_for_delete_at);
|
||||
}
|
||||
|
||||
template <typename Child>
|
||||
future<> parse(file_input_stream& in, std::unique_ptr<metadata>& p) {
|
||||
p.reset(new Child);
|
||||
|
||||
@@ -164,5 +164,10 @@ struct statistics {
|
||||
std::unordered_map<metadata_type, std::unique_ptr<metadata>> contents;
|
||||
};
|
||||
|
||||
struct deletion_time {
|
||||
uint32_t local_deletion_time;
|
||||
uint64_t marked_for_delete_at;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user