mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 00:50:35 +00:00
replica/logstor: declare hist_key specialization before use
Declare the hist_key<segment_descriptor> 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.
This commit is contained in:
@@ -69,6 +69,13 @@ struct segment_descriptor : public log_heap_hook<segment_descriptor_hist_options
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace replica::logstor
|
||||
|
||||
template<>
|
||||
size_t hist_key<replica::logstor::segment_descriptor>(const replica::logstor::segment_descriptor& desc);
|
||||
|
||||
namespace replica::logstor {
|
||||
|
||||
using segment_descriptor_hist = log_heap<segment_descriptor, segment_descriptor_hist_options>;
|
||||
|
||||
struct segment_set {
|
||||
|
||||
Reference in New Issue
Block a user