encoding_state: mark helper methods protected
these methods are only used by the public methods of this class and its derived class "memtable_encoding_stats_collector". Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #15190
This commit is contained in:
@@ -45,13 +45,7 @@ private:
|
||||
min_tracker<gc_clock::time_point> min_local_deletion_time;
|
||||
min_tracker<gc_clock::duration> min_ttl;
|
||||
|
||||
public:
|
||||
encoding_stats_collector() noexcept
|
||||
: min_timestamp(api::max_timestamp)
|
||||
, min_local_deletion_time(gc_clock::time_point::max())
|
||||
, min_ttl(gc_clock::duration::max())
|
||||
{}
|
||||
|
||||
protected:
|
||||
void update_timestamp(api::timestamp_type ts) noexcept {
|
||||
min_timestamp.update(ts);
|
||||
}
|
||||
@@ -64,6 +58,13 @@ public:
|
||||
min_ttl.update(ttl);
|
||||
}
|
||||
|
||||
public:
|
||||
encoding_stats_collector() noexcept
|
||||
: min_timestamp(api::max_timestamp)
|
||||
, min_local_deletion_time(gc_clock::time_point::max())
|
||||
, min_ttl(gc_clock::duration::max())
|
||||
{}
|
||||
|
||||
void update(const encoding_stats& other) noexcept {
|
||||
update_timestamp(other.min_timestamp);
|
||||
update_local_deletion_time(other.min_local_deletion_time);
|
||||
|
||||
Reference in New Issue
Block a user