From e7dbccbdcd76286d8b7a73680eac01553703c488 Mon Sep 17 00:00:00 2001 From: Yaniv Michael Kaul Date: Fri, 17 Apr 2026 11:45:09 +0300 Subject: [PATCH] replica/logstor: declare hist_key specialization before use Declare the hist_key specialization in compaction.hh before templates in that header can instantiate the primary template. This avoids conflicting primary-template instantiations when the header is seen through the PCH. --- replica/logstor/compaction.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/replica/logstor/compaction.hh b/replica/logstor/compaction.hh index a3884c6e46..539c0f5228 100644 --- a/replica/logstor/compaction.hh +++ b/replica/logstor/compaction.hh @@ -69,6 +69,13 @@ struct segment_descriptor : public log_heap_hook +size_t hist_key(const replica::logstor::segment_descriptor& desc); + +namespace replica::logstor { + using segment_descriptor_hist = log_heap; struct segment_set {