tablets: Move tablet_migration_info to tablets.hh

Will add methods which operate on it to tablets.hh where they belong.
This commit is contained in:
Tomasz Grabiec
2024-01-19 12:00:00 +01:00
parent 4a06ffb43c
commit ae382196f1
2 changed files with 9 additions and 7 deletions

View File

@@ -201,6 +201,14 @@ struct tablet_transition_info {
// Returns the leaving replica for a given transition.
tablet_replica get_leaving_replica(const tablet_info&, const tablet_transition_info&);
/// Represents intention to move a single tablet replica from src to dst.
struct tablet_migration_info {
locator::tablet_transition_kind kind;
locator::global_tablet_id tablet;
locator::tablet_replica src;
locator::tablet_replica dst;
};
/// Describes streaming required for a given tablet transition.
struct tablet_migration_streaming_info {
std::unordered_set<tablet_replica> read_from;

View File

@@ -13,13 +13,7 @@
namespace service {
/// Represents intention to move a single tablet replica from src to dst.
struct tablet_migration_info {
locator::tablet_transition_kind kind;
locator::global_tablet_id tablet;
locator::tablet_replica src;
locator::tablet_replica dst;
};
using tablet_migration_info = locator::tablet_migration_info;
class migration_plan {
public: