db: view_update_builder: build_some: maybe yield between updates

`update.move_to` freezes the mutation

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-04-08 11:22:41 +03:00
parent 243ba2e976
commit 0e570d6ffa

View File

@@ -929,6 +929,7 @@ future<utils::chunked_vector<frozen_mutation_and_schema>> view_update_builder::b
utils::chunked_vector<frozen_mutation_and_schema> mutations;
for (auto& update : _view_updates) {
update.move_to(mutations);
co_await coroutine::maybe_yield();
}
co_return mutations;
}