It's now unused, and these combinator style wrappers are easy to
misuse and hard to read compared with RAII and coroutines.
Signed-off-by: Samuel Just <sjust@redhat.com>
});
}
- template <typename F>
- auto with_throttle(
- crimson::osd::scheduler::params_t params,
- F &&f) {
- return acquire_throttle(params)
- .then(std::forward<F>(f))
- .finally([this] {
- release_throttle();
- });
- }
-
private:
void dump_detail(Formatter *f) const final;
}
FORWARD_TO_OSD_SINGLETON(get_pool_info)
- FORWARD(with_throttle, with_throttle, local_state.throttler)
FORWARD(get_throttle, get_throttle, local_state.throttler)
FORWARD_TO_OSD_SINGLETON(build_incremental_map_msg)