mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
index/secondary_index_manager: Take std::span instead of std::vector
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user