From 9bfd3dc311229eeb232efc6d10c853e460326c63 Mon Sep 17 00:00:00 2001 From: Piotr Jastrzebski Date: Thu, 6 Feb 2020 07:52:09 +0100 Subject: [PATCH] storage_service: reduce number of global_partitioner calls Replace global_partitioner().sharding_ignore_msb() call with config::murmur3_partitioner_ignore_msb_bits() Signed-off-by: Piotr Jastrzebski --- service/storage_service.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/storage_service.cc b/service/storage_service.cc index b4976cd39f..7de4efecda 100644 --- a/service/storage_service.cc +++ b/service/storage_service.cc @@ -1934,7 +1934,7 @@ future<> storage_service::gossip_snitch_info() { future<> storage_service::gossip_sharding_info() { return _gossiper.add_local_application_state({ { gms::application_state::SHARD_COUNT, value_factory.shard_count(smp::count) }, - { gms::application_state::IGNORE_MSB_BITS, value_factory.ignore_msb_bits(dht::global_partitioner().sharding_ignore_msb()) }, + { gms::application_state::IGNORE_MSB_BITS, value_factory.ignore_msb_bits(_db.local().get_config().murmur3_partitioner_ignore_msb_bits()) }, }); }