locator/tablets: add tablet_map::clear_tablet_transition_info()
This commit is contained in:
@@ -349,6 +349,11 @@ void tablet_map::set_resize_decision(locator::resize_decision decision) {
|
||||
_resize_decision = std::move(decision);
|
||||
}
|
||||
|
||||
void tablet_map::clear_tablet_transition_info(tablet_id id) {
|
||||
check_tablet_id(id);
|
||||
_transitions.erase(id);
|
||||
}
|
||||
|
||||
future<> tablet_map::for_each_tablet(seastar::noncopyable_function<future<>(tablet_id, const tablet_info&)> func) const {
|
||||
std::optional<tablet_id> tid = first_tablet();
|
||||
for (const tablet_info& ti : tablets()) {
|
||||
|
||||
@@ -432,6 +432,7 @@ public:
|
||||
void set_tablet(tablet_id, tablet_info);
|
||||
void set_tablet_transition_info(tablet_id, tablet_transition_info);
|
||||
void set_resize_decision(locator::resize_decision);
|
||||
void clear_tablet_transition_info(tablet_id);
|
||||
void clear_transitions();
|
||||
|
||||
// Destroys gently.
|
||||
|
||||
Reference in New Issue
Block a user