You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by to...@apache.org on 2023/01/11 15:38:44 UTC

[incubator-kvrocks] 01/02: Set the slot_id_encoded config option if cluster mode is enabled

This is an automated email from the ASF dual-hosted git repository.

torwig pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git

commit 12e5f2982db545261e12a36e1580df63c8608344
Author: Yaroslav Stepanchuk <to...@gmail.com>
AuthorDate: Tue Jan 10 18:02:13 2023 +0200

    Set the slot_id_encoded config option if cluster mode is enabled
---
 utils/kvrocks2redis/main.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/kvrocks2redis/main.cc b/utils/kvrocks2redis/main.cc
index 0752a8cf..20d52fc2 100644
--- a/utils/kvrocks2redis/main.cc
+++ b/utils/kvrocks2redis/main.cc
@@ -155,6 +155,7 @@ int main(int argc, char *argv[]) {
   Config kvrocks_config;
   kvrocks_config.db_dir = config.db_dir;
   kvrocks_config.cluster_enabled = config.cluster_enable;
+  kvrocks_config.slot_id_encoded = config.cluster_enable;
 
   Engine::Storage storage(&kvrocks_config);
   s = storage.Open(true);