Files
scylladb/api
Pavel Emelyanov d670e01bab api: Handle stop compaction endpoint without database help
The handler in question calls replica::database's invoke_on_all and then
gets compaction manager from local db and finds the table object from it
as well. The latter is needed to provide filter function for
compaction_manager::stop_compaction() call and stop only compactions for
specific table.

Using replica::database can be avoided here (that's the part of dropping
http_context -> database dependency eventually):

- using sharded<compaction_manager> instead, it's c.m. that's needed on
  all shards, not really the database
- don't search for table object on db, instead get table ID from parsed
  table_info instead to provide the correct filter function

(continuation of #25846)

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>

Closes scylladb/scylladb#26082
2025-09-25 11:05:50 +03:00
..
2025-09-19 16:17:56 +03:00
2025-02-15 20:32:22 +02:00