mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-06 23:13:15 +00:00
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 <piotr@scylladb.com>
This commit is contained in:
@@ -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()) },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user