mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 19:10:42 +00:00
" table_state is being introduced for compaction subsystem, to remove table dependency from compaction interface, fix layer violations, and also make unit testing easier as table_state is an abstraction that can be implemented even with no actual table backing it. In this series, compaction strategy interfaces are switching to table_state, and eventually, we'll make compact_sstables() switch to it too. The idea is that no compaction code will directly reference a table object, but only work with the abstraction instead. So compaction subdirectory can stop including database.hh altogether, which is a great step forward. " * 'table_state_v5' of https://github.com/raphaelsc/scylla: sstable_compaction_test: switch to table_state compaction: stop including database.hh for compaction_strategy compaction: switch to table_state in estimated_pending_compactions() compaction: switch to table_state in compaction_strategy::get_major_compaction_job() compaction: switch to table_state in compaction_strategy::get_sstables_for_compaction() DTCS: reduce table dependency for task estimation LCS: reduce table dependency for task estimation table: Implement table_state compaction: make table param of get_fully_expired_sstables() const compaction_manager: make table param of has_table_ongoing_compaction() const Introduce table_state