effective_replication_map: enable_lw_shared_from_this

So a effective_replication_map_ptr can be generated
using a raw pointer by effective_replication_map_factory.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2021-11-17 10:09:34 +02:00
parent f4f41e2908
commit ecba37dbfd

View File

@@ -136,7 +136,7 @@ public:
// Holds the full replication_map resulting from applying the
// effective replication strategy over the given token_metadata
// and replication_strategy_config_options.
class effective_replication_map {
class effective_replication_map : public enable_lw_shared_from_this<effective_replication_map> {
public:
struct factory_key {
replication_strategy_type rs_type;