From d4c531307d20f326662f5d3cdd8a1dd7478955ec Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Fri, 3 Jan 2025 17:52:22 +0200 Subject: [PATCH] replica: database.hh: drop dependency on boost ranges Reduces dependency load. Closes scylladb/scylladb#22749 --- node_ops/node_ops_ctl.cc | 2 ++ replica/database.hh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/node_ops/node_ops_ctl.cc b/node_ops/node_ops_ctl.cc index 64a1ab3618..b4e8329645 100644 --- a/node_ops/node_ops_ctl.cc +++ b/node_ops/node_ops_ctl.cc @@ -18,6 +18,8 @@ #include #include "idl/node_ops.dist.hh" +#include + static logging::logger nlogger("node_ops"); node_ops_ctl::node_ops_ctl(const service::storage_service& ss_, node_ops_cmd cmd, locator::host_id id, gms::inet_address ep, node_ops_id uuid) diff --git a/replica/database.hh b/replica/database.hh index 1d2bebb5b2..37b9c506a1 100644 --- a/replica/database.hh +++ b/replica/database.hh @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include "types/types.hh" @@ -240,7 +239,7 @@ public: // # 8904 - this method is akin to std::set::erase(key_type), not // erase(iterator). Should be tolerant against non-existing. void erase(const shared_memtable& element) noexcept { - auto i = boost::range::find(_memtables, element); + auto i = std::ranges::find(_memtables, element); if (i != _memtables.end()) { _memtables.erase(i); }