index/secondary_index_manager: Take std::span instead of std::vector

This commit is contained in:
Dawid Mędrek
2025-10-09 16:17:07 +02:00
parent 074f0f2e4c
commit ecc955fbe0
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ sstring index_name_from_table_name(const sstring& table_name) {
}
std::set<sstring>
existing_index_names(const std::vector<schema_ptr>& tables, std::string_view cf_to_exclude) {
existing_index_names(std::span<const schema_ptr> tables, std::string_view cf_to_exclude) {
std::set<sstring> names;
for (auto& schema : tables) {
if (!cf_to_exclude.empty() && schema->cf_name() == cf_to_exclude) {

View File

@@ -47,7 +47,7 @@ sstring index_name_from_table_name(const sstring& table_name);
/// Given a list of base-table schemas, return all their secondary indexes, except that specified in cf_to_exclude.
std::set<sstring>
existing_index_names(const std::vector<schema_ptr>& tables, std::string_view cf_to_exclude);
existing_index_names(std::span<const schema_ptr> tables, std::string_view cf_to_exclude);
/// Given a base-table keyspace and table name, return the first available index
/// name (containing index_name_root if specified).