From 6d1cdf40fe10ba03a46e04621b54157b05632c09 Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Thu, 23 May 2024 17:29:25 +0800 Subject: [PATCH] force vnode count to 1 --- src/common/src/hash/consistent_hash/vnode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/hash/consistent_hash/vnode.rs b/src/common/src/hash/consistent_hash/vnode.rs index 9bc49a9372ac0..31fe373d8d6cb 100644 --- a/src/common/src/hash/consistent_hash/vnode.rs +++ b/src/common/src/hash/consistent_hash/vnode.rs @@ -51,7 +51,7 @@ impl VirtualNode { /// /// Note: Not all bits of the inner representation are used. One should rely on this constant /// to determine the count of virtual nodes. - pub const BITS: usize = 8; + pub const BITS: usize = 0; /// The total count of virtual nodes. pub const COUNT: usize = 1 << Self::BITS; /// The size of a virtual node in bytes, in memory or serialized representation.