db,view: drop default parameter for mutate_MV::allow_hints
Default parameters are considered harmful, and as part of a cleanup before editing view.cc code, a default value for allow_hints parameter is removed.
This commit is contained in:
@@ -122,7 +122,7 @@ future<> mutate_MV(
|
||||
db::view::stats& stats,
|
||||
cf_stats& cf_stats,
|
||||
db::timeout_semaphore_units pending_view_updates,
|
||||
service::allow_hints allow_hints = service::allow_hints::yes);
|
||||
service::allow_hints allow_hints);
|
||||
|
||||
/**
|
||||
* create_virtual_column() adds a "virtual column" to a schema builder.
|
||||
|
||||
2
table.cc
2
table.cc
@@ -2108,7 +2108,7 @@ future<> table::generate_and_propagate_view_updates(const schema_ptr& base,
|
||||
std::move(existings)).then([this, base_token = std::move(base_token)] (std::vector<frozen_mutation_and_schema>&& updates) mutable {
|
||||
auto units = seastar::consume_units(*_config.view_update_concurrency_semaphore, memory_usage_of(updates));
|
||||
//FIXME: discarded future.
|
||||
(void)db::view::mutate_MV(std::move(base_token), std::move(updates), _view_stats, *_config.cf_stats, std::move(units)).handle_exception([] (auto ignored) { });
|
||||
(void)db::view::mutate_MV(std::move(base_token), std::move(updates), _view_stats, *_config.cf_stats, std::move(units), service::allow_hints::yes).handle_exception([] (auto ignored) { });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user