Files
scylladb/api
Benny Halevy bd3ed168ab api/compaction_manager: stop_keyspace_compaction: prevent stack use-after-free
Since `t.parallel_foreach_table_state` may yield,
we should access `type` by reference when calling
`stop_compaction` since it is captured by the calling
lambda and gets lost when it returns if
`parallel_foreach_table_state` returns an unavailable
future.

Instead change all captures to `[&]` so we can access
the `type` variable held by the coroutine frame.

Fixes #16975

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>

Closes scylladb/scylladb#17143
2024-02-05 09:32:08 +02:00
..
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00
2024-01-25 11:28:02 +03:00