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:
Kefu Chai
2023-08-28 13:28:04 +08:00
committed by Botond Dénes
parent ebc9056237
commit 6a55e4120e

View File

@@ -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);