Files
scylladb/locator/simple_snitch.cc
Shlomi Livne 3e31c56ed9 Support snitch registration on long and short format
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>
2015-06-15 15:33:40 +03:00

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");
}