Skip to content

Commit cd9dcf6

Browse files
committed
crimson: remove unused OperationThrottler::with_throttle
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 <[email protected]>
1 parent f99746a commit cd9dcf6

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/crimson/osd/osd_operation.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -334,17 +334,6 @@ class OperationThrottler : public BlockerT<OperationThrottler>,
334334
});
335335
}
336336

337-
template <typename F>
338-
auto with_throttle(
339-
crimson::osd::scheduler::params_t params,
340-
F &&f) {
341-
return acquire_throttle(params)
342-
.then(std::forward<F>(f))
343-
.finally([this] {
344-
release_throttle();
345-
});
346-
}
347-
348337
private:
349338
void dump_detail(Formatter *f) const final;
350339

src/crimson/osd/shard_services.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ class ShardServices : public OSDMapService {
593593
}
594594

595595
FORWARD_TO_OSD_SINGLETON(get_pool_info)
596-
FORWARD(with_throttle, with_throttle, local_state.throttler)
597596
FORWARD(get_throttle, get_throttle, local_state.throttler)
598597

599598
FORWARD_TO_OSD_SINGLETON(build_incremental_map_msg)

0 commit comments

Comments
 (0)