After fcb8d040 ("treewide: use Software Package Data Exchange
(SPDX) license identifiers"), many dual-licensed files were
left with empty comments on top. Remove them to avoid visual
noise.
Closes #10562
34 lines
624 B
C++
34 lines
624 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
namespace db {
|
|
|
|
enum class read_repair_decision {
|
|
NONE,
|
|
GLOBAL,
|
|
DC_LOCAL
|
|
};
|
|
|
|
inline std::ostream& operator<<(std::ostream& out, db::read_repair_decision d) {
|
|
switch (d) {
|
|
case db::read_repair_decision::NONE: out << "NONE"; break;
|
|
case db::read_repair_decision::GLOBAL: out << "GLOBAL"; break;
|
|
case db::read_repair_decision::DC_LOCAL: out << "DC_LOCAL"; break;
|
|
default: out << "ERR"; break;
|
|
}
|
|
return out;
|
|
}
|
|
|
|
}
|