mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
tablets: Add braces around tablet_transition_kind::repair switch
This is just to reduce the churn in the next patch Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -186,12 +186,13 @@ tablet_migration_streaming_info get_migration_streaming_info(const locator::topo
|
||||
|
||||
return result;
|
||||
}
|
||||
case tablet_transition_kind::repair:
|
||||
case tablet_transition_kind::repair: {
|
||||
auto s = std::unordered_set<tablet_replica>(tinfo.replicas.begin(), tinfo.replicas.end());
|
||||
result.stream_weight = locator::tablet_migration_stream_weight_repair;
|
||||
result.read_from = s;
|
||||
result.written_to = std::move(s);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
on_internal_error(tablet_logger, format("Invalid tablet transition kind: {}", static_cast<int>(trinfo.transition)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user