mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 11:22:01 +00:00
service: tablet_allocator: avoid large contiguous vector in make_repair_plan()
make_repair_plan() allocates a temporary vector which can grow larger
than our 128k basic allocation unit. Use a chunked vector to avoid
stalls due to large allocations.
Fixes #24713.
Closes scylladb/scylladb#24801
(cherry picked from commit 0138afa63b)
Closes scylladb/scylladb#24902
This commit is contained in:
@@ -842,7 +842,7 @@ public:
|
||||
db_clock::duration repair_time_diff;
|
||||
};
|
||||
|
||||
std::vector<repair_plan> plans;
|
||||
utils::chunked_vector<repair_plan> plans;
|
||||
auto migration_tablet_ids = co_await mplan.get_migration_tablet_ids();
|
||||
for (auto&& [table, tmap_] : _tm->tablets().all_tables()) {
|
||||
auto& tmap = *tmap_;
|
||||
|
||||
Reference in New Issue
Block a user