mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-22 15:52:13 +00:00
Introduce replication_restrictions, a sub-struct of cql_config, to hold the seven keyspace-level policy options that govern how CREATE/ALTER KEYSPACE statements are validated: - restrict_replication_simplestrategy - replication_strategy_warn_list / replication_strategy_fail_list - minimum/maximum_replication_factor_warn/fail_threshold Pass replication_restrictions into check_against_restricted_replication_strategies() instead of having it reach into db::config directly (via both qp.db().get_config() and qp.proxy().data_dictionary().get_config()). Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3.0 KiB
3.0 KiB