mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 11:30:36 +00:00
Snitches can be inialized based on short and long name format. In case a short name is provided the "org.apache.cassandra.locator." is contacenated to it. Out solution is simpler with double regitration. Default cassandra.yaml includes "endpoint_snitch: SimpleSnitch" Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
9 lines
288 B
C++
9 lines
288 B
C++
#include "locator/simple_snitch.hh"
|
|
#include "utils/class_registrator.hh"
|
|
|
|
namespace locator {
|
|
using registry = class_registrator<i_endpoint_snitch, simple_snitch>;
|
|
static registry registrator1("org.apache.cassandra.locator.SimpleSnitch");
|
|
static registry registrator2("SimpleSnitch");
|
|
}
|