mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 10:00:35 +00:00
Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
33 lines
729 B
C++
33 lines
729 B
C++
/*
|
|
* Copyright (C) 2021-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#include "service_level_statement.hh"
|
|
|
|
namespace cql3 {
|
|
|
|
namespace statements {
|
|
|
|
uint32_t service_level_statement::get_bound_terms() const {
|
|
return 0;
|
|
}
|
|
|
|
bool service_level_statement::depends_on(std::string_view ks_name, std::optional<std::string_view> cf_name) const {
|
|
return false;
|
|
}
|
|
|
|
future<> service_level_statement::check_access(query_processor& qp, const service::client_state &state) const {
|
|
return make_ready_future<>();
|
|
}
|
|
|
|
bool service_level_statement::needs_guard(query_processor&, service::query_state& state) const {
|
|
return state.get_service_level_controller().is_v2();
|
|
}
|
|
|
|
}
|
|
}
|