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/
37 lines
716 B
C++
37 lines
716 B
C++
/*
|
|
*
|
|
* Modified by ScyllaDB
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sstring.hh>
|
|
|
|
#include "gms/inet_address.hh"
|
|
#include "locator/host_id.hh"
|
|
|
|
using namespace seastar;
|
|
|
|
namespace locator {
|
|
|
|
using inet_address = gms::inet_address;
|
|
|
|
// Endpoint Data Center and Rack names
|
|
struct endpoint_dc_rack {
|
|
sstring dc;
|
|
sstring rack;
|
|
|
|
static thread_local const endpoint_dc_rack default_location;
|
|
|
|
bool operator==(const endpoint_dc_rack&) const = default;
|
|
};
|
|
|
|
using dc_rack_fn = seastar::noncopyable_function<std::optional<endpoint_dc_rack>(host_id)>;
|
|
|
|
} // namespace locator
|