db/hints/manager: Unfriend space_watchdog

space_watchdog is a friend of shard hint manager just to
be able to execute one of its functions. This commit changes
that by unfriending the class and exposing the function.
This commit is contained in:
Dawid Medrek
2023-10-02 17:29:03 +02:00
parent 6cd0153954
commit aa38ea3642

View File

@@ -74,7 +74,6 @@ private:
using hint_stats = internal::hint_stats;
using drain = internal::drain;
friend class space_watchdog;
friend class internal::hint_endpoint_manager;
friend class internal::hint_sender;
@@ -285,9 +284,9 @@ public:
/// \param endpoint node that left the cluster
future<> drain_for(endpoint_id endpoint) noexcept;
private:
void update_backlog(size_t backlog, size_t max_backlog);
private:
bool stopping() const noexcept {
return _state.contains(state::stopping);
}