mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
The std::source_location is broken on some versions of clang. In order to be able to use its functionality in code, seastar defines seastar::compat::source_location, which is a typedef over std::source_location if the latter works, or s custom, dummy implementation if the std type doesn't work. Therefore, sometimes seastar::compat::source_location == std::source_location, but not always. In service/raft/raft_rpc.cc, both std source location and compat source location are used and std source location sometimes passed as an argument to compat source location, breaking builds on older toolchains. Fix this by switching the code there to only use compat source location. Fixes: scylladb/scylladb#16336 Closes scylladb/scylladb#16337