storage_service, api: Add API to migrate a tablet
Will be used in tests, or for hot fixes in production.
This commit is contained in:
@@ -125,6 +125,11 @@ bool contains(const tablet_replica_set& rs, host_id host) {
|
||||
return false;
|
||||
}
|
||||
|
||||
inline
|
||||
bool contains(const tablet_replica_set& rs, const tablet_replica& r) {
|
||||
return std::ranges::any_of(rs, [&] (auto&& r_) { return r_ == r; });
|
||||
}
|
||||
|
||||
/// Stores information about a single tablet.
|
||||
struct tablet_info {
|
||||
tablet_replica_set replicas;
|
||||
|
||||
Reference in New Issue
Block a user