Files
scylladb/cql3/functions/error_injection_fcts.hh
Avi Kivity f3eade2f62 treewide: relicense to ScyllaDB-Source-Available-1.0
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/
2024-12-18 17:45:13 +02:00

44 lines
885 B
C++

/*
* Copyright (C) 2019-present ScyllaDB
*
* Modified by ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
*/
#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