From e55ac720effb6ac123e71ad389f57a39b8a5f2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=AA=E5=8D=8E=E8=A3=95?= Date: Tue, 16 Jul 2024 18:48:21 +0800 Subject: [PATCH] feat(config): change redis-cursor-compatible default value to yes (#2429) --- kvrocks.conf | 2 +- src/config/config.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kvrocks.conf b/kvrocks.conf index 66715028493..57b347fd00e 100644 --- a/kvrocks.conf +++ b/kvrocks.conf @@ -308,7 +308,7 @@ max-bitmap-to-string-mb 16 # Whether to enable SCAN-like cursor compatible with Redis. # If enabled, the cursor will be unsigned 64-bit integers. # If disabled, the cursor will be a string. -# Default: no +# Default: yes redis-cursor-compatible yes # Whether to enable the RESP3 protocol. diff --git a/src/config/config.cc b/src/config/config.cc index 4ff8901f9c8..98770ef6dd0 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -184,7 +184,7 @@ Config::Config() { {"unixsocketperm", true, new OctalField(&unixsocketperm, 0777, 1, INT_MAX)}, {"log-retention-days", false, new IntField(&log_retention_days, -1, -1, INT_MAX)}, {"persist-cluster-nodes-enabled", false, new YesNoField(&persist_cluster_nodes_enabled, true)}, - {"redis-cursor-compatible", false, new YesNoField(&redis_cursor_compatible, false)}, + {"redis-cursor-compatible", false, new YesNoField(&redis_cursor_compatible, true)}, {"resp3-enabled", false, new YesNoField(&resp3_enabled, false)}, {"repl-namespace-enabled", false, new YesNoField(&repl_namespace_enabled, false)}, {"json-max-nesting-depth", false, new IntField(&json_max_nesting_depth, 1024, 0, INT_MAX)},