Files
scylla/db/operation_type.hh
Piotr Dulikowski efc3953c0a transport: add rate_limit_error
Adds a CQL protocol extension which introduces the rate_limit_error. The
new error code will be used to indicate that the operation failed due to
it exceeding the allowed per-partition rate limit.

The error code is supposed to be returned only if the corresponding CQL
extension is enabled by the client - if it's not enabled, then
Config_error will be returned in its stead.
2022-06-22 20:07:58 +02:00

24 lines
310 B
C++

/*
* Copyright (C) 2022-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <cstdint>
#include <iosfwd>
namespace db {
enum class operation_type : uint8_t {
read = 0,
write = 1
};
std::ostream& operator<<(std::ostream& os, operation_type op_type);
}