mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
Instead of lengthy blurbs, switch to single-line, machine-readable standardized (https://spdx.dev) license identifiers. The Linux kernel switched long ago, so there is strong precedent. Three cases are handled: AGPL-only, Apache-only, and dual licensed. For the latter case, I chose (AGPL-3.0-or-later and Apache-2.0), reasoning that our changes are extensive enough to apply our license. The changes we applied mechanically with a script, except to licenses/README.md. Closes #9937
44 lines
862 B
C++
44 lines
862 B
C++
/*
|
|
* Copyright (C) 2019-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "native_scalar_function.hh"
|
|
|
|
namespace cql3
|
|
{
|
|
|
|
namespace functions
|
|
{
|
|
|
|
namespace error_injection
|
|
{
|
|
|
|
class failure_injection_function : public native_scalar_function {
|
|
protected:
|
|
failure_injection_function(sstring name, data_type return_type, std::vector<data_type> args_type)
|
|
: native_scalar_function(std::move(name), std::move(return_type), std::move(args_type)) {
|
|
}
|
|
|
|
bool requires_thread() const override {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
shared_ptr<function> make_enable_injection_function();
|
|
shared_ptr<function> make_disable_injection_function();
|
|
shared_ptr<function> make_enabled_injections_function();
|
|
|
|
} // namespace error_injection
|
|
|
|
} // namespace functions
|
|
|
|
} // namespace cql3
|